Welcome Guest Search | Active Topics | Sign In | Register

ClientSideOnItemClick not working in treeview control Options
Murtaza
Posted: Thursday, November 10, 2011 2:07:34 AM
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
eo_support
Posted: Thursday, November 10, 2011 8:34:58 AM
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
Murtaza
Posted: Friday, November 11, 2011 7:13:26 AM
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
eo_support
Posted: Friday, November 11, 2011 8:08:06 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.