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
close icon

Code in ClientOnItemSelect not fired

Hi,

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.


3 Replies

VI Vignesh Syncfusion Team 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.



[CS]

objSyncNode.ClientOnItemSelect = "test()";

[JavaScript]



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

treeview1237725155.zip

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

Regards,
Vignesh




MM Matthias Max June 21, 2011 12:59 PM UTC

Works, thank yoU !



VI Vignesh Syncfusion Team 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.

Reagards,
Vignesh


Loader.
Live Chat Icon For mobile
Up arrow icon