Hi am very new to Dojo and very eagar to know the dojo with ajax. i want to improve my learning curve. Actually i create a tree widget dynamically by database values using dojo version 0.4.3. For tree creation using
dojo.require("dojo.widget.Tree");
dojo.require("dojo.widget.TreeNode");
dojo.require("dojo.widget.TreeRPCController");
and if i have any child page in TreeNode parameter - isFolder is true and leaf node mentioned isFolder = false. it is working fine. but in dojo version 0.9 and above am not able to see this kind of options to insert child (isFolder). how do i show (+) symbol in the tree with dynamic value (like isFolder = true)
My expectation is using v0.9 or above
step 1: during onLoad connect the server using Ajax (xhrGET method) getting first level of values from database and populating under RootNode.
step 2: If i expand the (+) symbol, control passes thru ajax and get the second level of the corresponding node. this process contiuenously @ the leaf node of parent node.
step 3: if i click the particular node value, it displays the details of the node in the right side. give any sample and simple code for this. it will be very helpful to understand and improve my knowledge. Thanks in advance.
Re: programmatically create the tree view by DB values using Doj
I think that it is related to http://www.alexatnet.com/node/160