Adding AjaxLoadingPanel to Treeview at node level

5 posts, 0 answers
  1. Jerry
    Jerry avatar
    41 posts
    Member since:
    Mar 2012

    Posted 28 Mar 2014 Link to this post

    Hello,

    I have a radTreeView that has many nodes and sub-nodes. 
    I want to add a AjaxLoadingPanel so it will display horizontally with the "+" being selected by the user.
    Is this possible?

    Thank you,
    Jerry
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 02 Apr 2014 Link to this post

    Hello Jerry,

    I would like to clarify that the RadTreeView does have a default animation that is shown next to the node's expand icon while the request is handled. Please find attached a sample project that implements server side call back scenario. For testing purposes I added System.Threading.Thread.Sleep(3000) that will cause a delay for 3 seconds so you can watch the animation and simulate loading lots of sub nodes .

    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jerry
    Jerry avatar
    41 posts
    Member since:
    Mar 2012

    Posted 03 Apr 2014 in reply to Boyan Dimitrov Link to this post

    Hi Boyan,

    Thank you that example helped.  Within my tree view there is a node that will be populated using html.  It creates a list box with many items.  This node still has the "+" next to it even though it is the last node, how can I stop it from showing the "+"?

    Thank you
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 07 Apr 2014 Link to this post

    Hello,

    As far as I understand you are using the RadTreeView1_NodeExpand event handler in order to load the nodes on demand. In the attached sample project all nodes that are loaded on demand have ExpandMode property set to TreeNodeExpandMode.ServerSideCallBack. This means that all of them will have plus sign and will load nodes on demand if you click this sign. An easy and convenient way of avoiding this behavior is simply not to set ExpandMode  for your last node.


    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Jerry
    Jerry avatar
    41 posts
    Member since:
    Mar 2012

    Posted 15 Apr 2014 in reply to Boyan Dimitrov Link to this post

    Hi Boyan,

    Thank you so much that worked.

    Jerry
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017