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

NodeTemplate and LoadOndemand

1 Answer 13 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Shanthi
Top achievements
Rank 1
Shanthi asked on 02 Oct 2013, 10:05 PM
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.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 07 Oct 2013, 02:46 PM
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.
Tags
TreeView
Asked by
Shanthi
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or