[CLOSED] How to set all rows as selected in GridPanel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] How to set all rows as selected in GridPanel

    Using a CheckboxSelectionModel with a GridPanel, How would I make everything in the grid selected by default?
    Last edited by Daniil; Sep 30, 2010 at 4:47 PM. Reason: [CLOSED]
  2. #2
    Hi jmcantrell,

    There is no such config item (as I know), but you could use the selectAll method like this (or .SelectAll() on server side).

    Example
    <ext:GridPanel ...>
        ...
        <View>
            <ext:GridView>
                <Listeners>
                    <Refresh Handler="this.grid.getSelectionModel().selectAll();" Delay="1" Single="true"/>
                </Listeners>
            </ext:GridView>
        </View>
    </ext:GridPanel>
  3. #3
    This worked. Thanks.

Similar Threads

  1. [CLOSED] Checkbox Selected Rows in GridPanel
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 12, 2012, 1:00 PM
  2. [CLOSED] How to get selected rows count in gridpanel
    By egvt in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 31, 2012, 5:22 PM
  3. Replies: 1
    Last Post: Oct 13, 2010, 11:09 PM
  4. Replies: 2
    Last Post: Dec 25, 2009, 2:56 PM
  5. [CLOSED] Get selected rows in GridPanel
    By danielg in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 24, 2009, 12:48 PM

Posting Permissions