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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tree view link

Thread ID:





93117 Feb 24,2010 02:27 PM UTC Feb 26,2010 07:43 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Jorge Mello
Asked On February 24, 2010 02:27 PM UTC

I am using the following code ........


Untitled Page

borderstyle="Solid" borderwidth="1px" height="80px" width="160px"
DataSourceID="SqlDataSource1" dir="ltr" EditNode="False" ClientSideOnNodeSelect="nodeSelected(this)" >


ConnectionString="<%$ ConnectionStrings:local %>"
SelectCommand="SELECT [id], [parentId], [Text], [Target] FROM [Links]">

The warning is being displayed = [object Object] and not the value selected.
Where is the mistake?


Lakxman Kumar C [Syncfusion]
Replied On February 26, 2010 07:43 AM UTC

Hi Jorge,

Thank you for your interest in Syncfusion Products.

The ClientSideOnNodeSelect event of the treeview returns the clientside object for the selected node. That is why when the 'node' variable was alerted, [object Object] was displayed. If your intention is to alert the text of the selected node it can be done by the Text propery of the selected node. Kindly find below the modified code snippet to achieve this.


function nodeSelected(node)

Also I have created a simple sample for your convenience and it can be downloaded from the link below.


Kindly view the above sample, reproduce it in your application and please let me know if this helps.

Lakxman Kumar C


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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