[CLOSED] CycleButton - onclientclick

  1. #1

    [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

    <%@ 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]
  2. #2
    Hi,

    Please use CheckChange listener of CheckMenuItem.
  3. #3
    Thanks.

    Please, mark as solved.

Similar Threads

  1. [CLOSED] OnClientClick codebehind
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 14, 2011, 12:49 PM
  2. [CLOSED] help with OnClientClick and DirectEvent
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 26, 2010, 4:06 PM
  3. [CLOSED] [1.0] CycleButton in MVC
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 12, 2010, 2:03 PM
  4. [CLOSED] CycleButton
    By Ben in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 03, 2009, 9:31 AM
  5. Button and OnClientClick?
    By Timothy in forum 1.x Help
    Replies: 10
    Last Post: Jun 30, 2008, 10:28 AM

Posting Permissions