[CLOSED] Set Button-toogle in gridpanel

  1. #1

    [CLOSED] Set Button-toogle in gridpanel

    how can i use toogle button in gridpanel column?

    Thanks in advance
    Last edited by Daniil; Sep 17, 2013 at 5:30 AM. Reason: [CLOSED]
  2. #2
    Hi @legaldiscovery,

    You can use a ComponentColumn.
    <ext:ComponentColumn runat="server">
        <Component>
            <ext:Button runat="server" EnableToggle="true" Text="Toggle" />
        </Component>
    </ext:ComponentColumn>
    However, it is not enough. A toggle state will be erased if refresh the GridPanel (for example, it happens after sorting). So, you might need to maintain the Buttons' state. For that you can define an individual ModelField. Record a Button's state in that ModelField when that Button is being clicked. You can restore that state in a ComponentColumn's Bind listener. It should fire on each refresh of the GridPanel.

Similar Threads

  1. Replies: 1
    Last Post: Jul 23, 2013, 7:11 AM
  2. GridPanel Inc. Button
    By nedimkeskin in forum 1.x Help
    Replies: 0
    Last Post: Jun 12, 2012, 1:04 PM
  3. Button in GridPanel
    By magisystem in forum 1.x Help
    Replies: 1
    Last Post: Aug 04, 2010, 5:58 PM
  4. save two GridPanel's with one button
    By stephan1985 in forum 1.x Help
    Replies: 5
    Last Post: Feb 08, 2010, 11:08 PM
  5. Replies: 3
    Last Post: Feb 02, 2010, 6:32 PM

Posting Permissions