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

Template based on value

1 Answer 64 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 21 Sep 2010, 05:13 PM
Hi, Is it possible to assign different templates to different nodes based on the value of a database field? I am binding the treeview to the results of a stored procedure.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 24 Sep 2010, 09:16 AM
Hi Darren,

Recently, we have rolled out a new server event - TemplateNeeded. You can handle this event (it's thrown for every node), checking the DataItem of the node (checking a specific column) and applying template with respect to this.

Hope this is helpful for you!


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Darren
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or