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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

108772 May 11,2013 05:15 AM UTC May 14,2013 04:00 AM UTC ASP.NET MVC (Classic) 1
loading
Tags: Tools
Kedar Kodlapur
Asked On May 11, 2013 05:15 AM UTC

Hi,
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.

Varalakshmi R.S [Syncfusion]
Replied On 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.

 

Regards,

Varalakshmi

CONFIRMATION

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.

Warning Icon 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.Close Icon

;