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

    Hi,

    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.

            http://www.telerik.com/help/aspnet-ajax/treeview-load-on-demand-server.html

      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?


    Thanks.
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 07 Oct 2013 Link to this post

    Hello,

    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: http://www.telerik.com/help/aspnet-ajax/treeview-templates-runtime.html


    Regards,
    Boyan Dimitrov
    Telerik
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top