May 04, 2011, 1:22 PM
[CLOSED] CycleButton - onclientclick
Good Morning,
I cant get OnClientClick neither Listenters>Click to fire when clicking on the cyclic button. How can i make it work?
Bellow a code to reproduce.
Thanks
I cant get OnClientClick neither Listenters>Click to fire when clicking on the cyclic button. How can i make it work?
Bellow a code to reproduce.
Thanks
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Button Control Variations - Ext.NET Examples</title>
</head>
<body>
<ext:ResourceManager runat="server" DirectEventUrl="default.aspx" />
<h2>
9. CycleButton</h2>
<ext:CycleButton runat="server" ShowText="true" MenuArrow="false">
<Menu>
<ext:Menu runat="server">
<Items>
<ext:CheckMenuItem runat="server" Text="Text Only" Icon="Note" OnClientClick="alert('1');">
<Listeners>
<Click Handler="alert('2');" />
</Listeners>
</ext:CheckMenuItem>
<ext:CheckMenuItem runat="server" Text="Html" Icon="Html" Checked="true" OnClientClick="alert('3');">
<Listeners>
<Click Handler="alert('4');" />
</Listeners>
</ext:CheckMenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:CycleButton>
</body>
</html>
Last edited by geoffrey.mcgill; May 04, 2011 at 8:24 PM.
Reason: [CLOSED]