CheckAll is filling only in 1st page in gridpanel

  1. #1

    CheckAll is filling only in 1st page in gridpanel

    Check All is not working, while we are using paging in gridpanel. it is filling only the current page. Entire gridpanel is not filling. i have tride with #{GridPanel}.SelectionModel.SelectAll(). still it is not working. Please give a solution.
  2. #2
    Hi,

    Please ask technical support question on the Help forum.

    Regarding the question

    Yes, .SelectAll() works as expected, but it really selects only current page rows.

    To select all rows through all pages, please use the following JavaScript code:

    Example
    GridPanel1.getSelectionModel().selectAll();
    
    var store = GridPanel1.getStore();
    
    Ext.each(store.getAllRange(), function (record, index) {
        GridPanel1.selectedIds[record.id] = {
            id : record.id,
            index : store.indexOf(index)
        };
    });

Similar Threads

  1. Replies: 1
    Last Post: Aug 22, 2011, 5:54 PM
  2. Checkboxselectionmodel and checkall
    By Birgit in forum 1.x Help
    Replies: 3
    Last Post: May 20, 2011, 3:04 PM
  3. [CLOSED] CheckboxSelectionModel Checkall as Standard
    By macap in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Aug 05, 2009, 9:17 AM
  4. [CLOSED] Filling the dropdown in the
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 04, 2009, 12:28 AM
  5. Replies: 6
    Last Post: Mar 20, 2009, 5:39 PM

Tags for this Thread

Posting Permissions