We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

expand singlepath effect of tree control in serversidecallback expand model

Thread ID:





58951 Apr 2,2007 05:32 AM Apr 2,2007 08:59 AM ASP.NET Web Forms (Classic) 1
Tags: Tools
sujith ks
Asked On April 2, 2007 05:32 AM


i use treeview(web) contol .i implimented that control using expandmode=TreeViewNodeExpandMode.ServerSideCallback;

so when i expand a node,the node is expanded keeping the tree state.so if i have expanded a node earlier it remains the same.i need to collapse all the nodes except the selected one.

you have provided a property expandsinglepath=true.but it is not working in ServerSideCallback.how can i do that in ServerSideCallback model?

Valli [Syncfusion]
Replied On April 2, 2007 08:59 AM

Hi Sujith,

I have created a sample as per your requirement and you can download it from the following link:


The above sample collapses all the nodes except the current selected node and in the sample the current selected node is assumed to be the node with the text 'LoadOnDemand'.

Please let us know if you have any further queries, we will be glad to assist you.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.