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. Image for the cookie policy date
close icon

expand singlepath effect of tree control in serversidecallback expand model

Hi


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?

1 Reply

VA Valli Syncfusion Team April 2, 2007 12:59 PM UTC

Hi Sujith,

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

http://websamples.syncfusion.com/samples/Tools.Web/4.4.0.51/F58951/main.htm

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.

Regards,
Valli

Loader.
Live Chat Icon For mobile
Up arrow icon