Welcome Guest Search | Active Topics | Sign In | Register

Custom properties / attributes in treenode Options
Renier
Posted: Sunday, May 26, 2013 6:13:20 AM
Rank: Newbie
Groups: Member

Joined: 2/19/2013
Posts: 3
Hi,

I have a treeview, build recursively using a stored proc and all works good. When I click on the node I currently do another query to get details about the clicked node.

Is there a way to store custom/extra properties in a node when building it, so that I do not have to do another query, but instead, just get the value from a custom property/attribute on the node.

Thanks,
eo_support
Posted: Sunday, May 26, 2013 8:59:25 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Yes. You can store additional value in the tree node's Value property.

Thanks!
Renier
Posted: Sunday, May 26, 2013 9:15:40 AM
Rank: Newbie
Groups: Member

Joined: 2/19/2013
Posts: 3
Thanks for the reply, I already use that and the ItemID, is that the only extra fields?
eo_support
Posted: Sunday, May 26, 2013 9:32:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Yes. Strictly speaking Value is the only extra field for you to use. The TreeView does not use it in anyway. You can also use ItemID, but the TreeView uses ItemID for FindItem.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.