|
Rank: Newbie Groups: Member
Joined: 11/3/2011 Posts: 6
|
Hi EO team,
I have defined treeview control in my web page using following syntax.
<eo:TreeView ID="VehicleTreeView" runat="server" AutoCheckParent="true" AutoCheckChildren="true" AutoUncheckChildren="true" EnableViewState="False" ClientSideOnItemClick="test123456">
But when user clicks on some treeview node, the javascript function test123456() is not getting triggered. Is there any other setting I need to make? Thank you.
P.S. OnClickScript is also not working. Even vehiclenode.OnClickScript = "javascript:alert('onclicksc');"; kind of code is also not functioning.
Regards, Murtaza
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Your ClientSideOnItemClick syntax is correct. Your OnClick syntax is wrong. You do not need "javascript:" prefix.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 11/3/2011 Posts: 6
|
I tried that syntax - it is working but the problem is we have checkbox images in our nodes. When user clicks on checkbox image, it is not triggering any client side event handler. The client side event is triggered only when user clicks on node text - not on node image. Can you check that?
Murtaza
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That behavior is by design. Check box events are handled by ClientSideOnCheckStateChanging.
Thanks
|
|