How to - Get Value of CycleButton?

  1. #1

    How to - Get Value of CycleButton?

    How to I get the value of a cycle cutton client side?
  2. #2

    RE: How to - Get Value of CycleButton?

    Hi,

    1. On client side: call CycleButton1.getActiveItem() -*Gets the currently active menu item (Ext.menu.CheckItem).*
    2. On server side: check what check menu item is checked
  3. #3

    RE: How to - Get Value of CycleButton?

    I am trying to pass aa value into a store sort, based upon which cycle selected - so am trying to take the selected button from below and pass it into here (in place of DESC):


    #{storeContracts}.sort(#{cbSortBy}.getValue(),'DES C');//------------------------------




    <ext:CycleButton ID="CycleButton1" runat="server" ShowText="false" PrependText="Sort direction ">


    <Menu>


    <ext:Menu ID="Menu3" runat="server">


    <Items>


    <ext:CheckMenuItem ID="CheckMenuItem1" runat="server" Text="ASC" Icon="ArrowUp" />


    <ext:CheckMenuItem ID="CheckMenuItem2" runat="server" Text="DESC" Icon="ArrowDown"


    Checked="true" />


    </Items>


    </ext:Menu>


    </Menu>


    </ext:CycleButton>
  4. #4

    RE: How to - Get Value of CycleButton?

    Hi,

    As far I know the CycleButton doesn't have getValue function. Use*


    CycleButton1.getActiveItem().text
    *
  5. #5

    RE: How to - Get Value of CycleButton?

    Worked great - thanks!
  6. #6

    RE: How to - Get Value of CycleButton?

    How do I get the selected value from the code-behind?
  7. #7

    RE: How to - Get Value of CycleButton?

    Hi,

    As I mentioned in above post
    "On server side: check what check menu item is checked "
  8. #8

    RE: How to - Get Value of CycleButton?

    How can I get the commandArgument from a cyclebutton, or, get a "value" from the button that differs from the text?

Similar Threads

  1. [CLOSED] CycleButton in gridpanel
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 07, 2010, 10:17 AM
  2. [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
  3. CycleButton
    By olimpia in forum 1.x Help
    Replies: 2
    Last Post: Jul 27, 2009, 2:10 PM
  4. [CLOSED] CycleButton
    By Ben in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Mar 03, 2009, 9:31 AM
  5. [CLOSED] How to get the value of a CycleButton into a ControlParameter
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 17, 2009, 12:31 PM

Posting Permissions