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

Adding AjaxLoadingPanel to Treeview at node level

4 Answers 54 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 28 Mar 2014, 02:23 PM
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

4 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 02 Apr 2014, 12:38 PM
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.

 
0
Jerry
Top achievements
Rank 1
answered on 03 Apr 2014, 12:59 PM
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
0
Boyan Dimitrov
Telerik team
answered on 07 Apr 2014, 04:05 PM
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.

 
0
Jerry
Top achievements
Rank 1
answered on 15 Apr 2014, 08:01 PM
Hi Boyan,

Thank you so much that worked.

Jerry
Tags
TreeView
Asked by
Jerry
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Jerry
Top achievements
Rank 1
Share this question
or