Template based on value

2 posts, 0 answers
  1. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 21 Sep 2010 Link to this post

    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!
  2. Nikolay Tsenkov
    Nikolay Tsenkov avatar
    734 posts

    Posted 24 Sep 2010 Link to this post

    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!

    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
Back to Top