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

expand/collapsing node with load on demand

1 Answer 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tou
Top achievements
Rank 1
Tou asked on 25 Jan 2011, 06:37 PM
Hello,

I am able to load parent nodes with the appropriate child nodes, but am running into a problem when the parent node has no children (the web method/service returns zero items).  So, I drag a child node from another parent node and it is added properly - however when I collapse that parent node (the one that I just added a child node to) and expand it again, the child node I dragged from the other parent node disappears because the web method/service is called again.  Is there a workaround for this?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 27 Jan 2011, 03:32 PM
Hello Tou,

Could you, please, change the expand mode of the expanded node on ClientNodePopulated event to ClientSide?
node.set_expandMode(0);


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
Tou
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or