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

How to get the selected node from the Treeview in ASP.NET MVC on the client side?

I've a TreeView on the left side of the page. There are many parent nodes and their corresponding child nodes.
Right now data is bound on the client side.
I've 2 questions.
1)How to send the the data collection from the controller and bind it my treeview?
2)On click of a child node, how to raise an event on the client side? E.g. I want to identify what node is clicked and based on that want to update the UI on the right hand side.

Please send the simple samples at the earliest.

1 Reply

VR Varalakshmi R.S Syncfusion Team May 14, 2013 04:00 AM UTC

Hi Kedar,


Thanks for contacting Syncfusion forums.


Kindly go through the below given links which gives more information on your requirement,


1.       Databind in TreeView

Sample link: http://mvc.syncfusion.com/demos/ui/tools/TreeView/DataBinding

UG link: http://help.syncfusion.com/ug/asp.net%20mvc/tools/documents/objectdatabinding.htm


2.       Client side events

Sample link: http://mvc.syncfusion.com/demos/ui/tools/TreeView/ClientSideEvents

UG link: http://help.syncfusion.com/ug/asp.net%20mvc/tools/documents/clientsideevents17.htm


Also, we have updated a simple sample for this requirement in the incident #108151 which is created by you. Please refer the above specified incident for better follow up.




Live Chat Icon For mobile
Up arrow icon