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.htmThe 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