NodeTemplate and LoadOndemand

2 posts, 0 answers
  1. Shanthi
    Shanthi avatar
    2 posts
    Member since:
    May 2013

    Posted 02 Oct 2013 Link to this post


    1. Need to create a RadTreeView with multiple levels. Choose the LoadOnDemand approach as it improves the performance.
    2. Initially Treeview binds declaratively with first level of data. Treeview contain NodeTemplate.
    3. While expanding the TreeNode, created sub Treenode in OnNodeExpand as shown here.


      4. But node.Text and node.Value not setting value for NodeTemplate
      5. Tried to create NodeTemplate from code, that is also not working.

      So my scenario is to work on NodeTemplate and LoadOndemand together. Am I missing something?

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    1968 posts

    Posted 07 Oct 2013 Link to this post


    It seems that you are missing only the functionality applying the node template to the dynamically created nodes. Here is a nice article on dynamically adding templates during run-time in RadTreeView:

    Boyan Dimitrov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top