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

Code in ClientOnItemSelect not fired

Thread ID:





99921 Jun 20,2011 01:53 PM UTC Jun 22,2011 08:32 AM UTC ASP.NET Web Forms (Classic) 3
Tags: Tools
Matthias Max
Asked On June 20, 2011 01:53 PM UTC


I set this serverside for a node that's being added to a treeview:

objSyncNode.ClientOnItemSelect = "alert('test');"

but the javascript doesn't get fired.

Any idea?

Thank you.

Vignesh [Syncfusion]
Replied On June 21, 2011 07:25 AM UTC

Hi Matthias,

Thanks for your interest in syncfusion products.

We suggest you to assign the function name for the client side events to be evaluated as shown in the below code. When declaring code as inline please remove the ";" in the code "objSyncNode.ClientOnItemSelect = "alert('test');", so that it could be evaluated.


objSyncNode.ClientOnItemSelect = "test()";


Also I have created simple sample and attached in the below link,


Please try this and let us know if you have any queries.


Matthias Max
Replied On June 21, 2011 12:59 PM UTC

Works, thank yoU !

Vignesh [Syncfusion]
Replied On June 22, 2011 08:32 AM UTC

Hi Matthias,

Thanks for the Update.

Please let us know if you have any other queries and we will be happy to help you out.



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

This page will automatically be redirected to the 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