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

how to handle node templates with load on demand

1 Answer 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
stefano
Top achievements
Rank 1
stefano asked on 19 Apr 2011, 01:27 PM
Hello

I need to extend a project that has been developed with radcontrols for asp.net ajax Q3 2009. The customer has explicitly asked for a page with data displayed as a tree structure with the following requirments : I'll have to query the db, group records by year, quarter,department and "complaint code". Therefore i have to dinamically build the tree  adding a year root node for each distinct year ,  1-4 quarter subnode below each year, 1-n department below each quarter and 1-m "complaint code" below each department. Moreover i'd like to display data on demand, since i fear, in the long term, the building and load of the tree might become very cumbersome. Another feature i've to add is displaying richest infos about the complaint , i mean every complaint code has some additional details that the user want to see at first glance; i was thinking to use node templates , embedding a grid or something else into nodes .   

The first question is : am i putting myself into troubles or the above is a reasonable solution to my requirements ?

Next , i've searched around a bit but i'm not finding much and i've some problems in figuring out how to put togheter all the features described above, can someone direct me to some tutorial, documentation or give any hint about which is the best way to accomplish it please?

thank you in advance for any help
Stefano

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay Tsenkov
Telerik team
answered on 22 Apr 2011, 09:01 AM
Hello stefano,

I think this is achievable.
You can place the TreeView inside an AjaxPanel and then use ServerSide ExpandMode in order to Load nodes On Demand and still have the ability to template them.

Here is a nice article on ServerSide ExpandMode type of Load On Demand: http://www.telerik.com/help/aspnet-ajax/treeview-load-on-demand-server.html

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,
Nikolay Tsenkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TreeView
Asked by
stefano
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or