how to handle node templates with load on demand

2 posts, 1 answers
  1. stefano
    stefano avatar
    2 posts
    Member since:
    Apr 2011

    Posted 19 Apr 2011 Link to this post

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

    Posted 22 Apr 2011 Link to this post

    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.

Back to Top