Subscribe

  • Subscribe  

Tree Control manipulation – II

Posted by Moxie Zhang | June 14, 2005 .

Now let continure and see how to deal with the Tree Control.

Add a data item to a node

Notice that if you want make change on node, you need use the treeDataProvider property.

rptree.treeDataProvider.getTreeNodeAt(0).getTreeNodeAt(1).addTreeNoteAt(1,”A new Data Item”);

Change/Replace a data item

Here is something not consistant with the way to access control property.

rptree.getTreeNodeAt(0).setProperty(“label”,”A new Lable”);

You have to call setProperty method to change the label. But most common way is to directly assign data to a property.

Will do some advanced next time such as drag-drop action on tree, cell rendering, etc.

Leave a Comment

If you would like to make a comment, please fill out the form below.


Name

Email

Website

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Comments

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word


Related Posts

<

Direct TV Offers - usdirect has the best directtv deals