This is a migrated thread and some comments may be shown as answers.

Storing key or Taf with each node

1 Answer 10 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Claude asked on 02 Dec 2013, 11:41 PM

I wish to add a key or a tag with each node (db record id) so when the user selects the node, I can retrieve the key or tag and go query the database.

Suggestions on how to store the key during node creation(node.add) and retrieval would be helpful

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Dec 2013, 08:29 AM
Hi Claude,

Thank you for writing.

If the tree is bound, then you can access the data item of each node via its DataBoundItem property, so you do not need to store anything in advance. 

Let me know how this works for you.

Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Treeview
Asked by
Claude
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or