[CLOSED] GridPanel CheckAll functionality

  1. #1

    [CLOSED] GridPanel CheckAll functionality

    Hi,

    I have used GridPanel with CheckColumn with local PageToolbar with PageSize = 20.

    I have binded store with 1200 record in page_load.

    Now I want to apply checkall functionality of all store's record. but it checks only 20 records.

    Code For Check All functionality is given below and I have wirten in CheckColumn's AfterRenderer.
    this.el.on('click', function (e, el) {for (i = 0; i < #{StoreSearchResult}.getRange().length; i++) {#{StoreSearchResult}.getAt(i).set('chk',#{chkSelectAll}.checked)} #{GridSearchResult}.view.refresh();avgRapRateAll();});
    Thanks
    Shailesh
    Last edited by Daniil; Apr 09, 2013 at 5:09 AM. Reason: [CLOSED]
  2. #2
    Hi Shailesh,

    Do you use remote or local paging?
  3. #3
    Hi Daniil,

    I am using local paging..

    Thanks
    Shailesh
  4. #4
    OK. I think it is possible, but not easy.

    Override the onHeaderClick function to select/deselect all the records.
    http://docs.sencha.com/ext-js/4-2/#!...-onHeaderClick

    Here is an example of how to select records from a non-current page.
    http://forums.ext.net/showthread.php?21368#post92552

    You should iterate all the Store's records.
    Store1.allData
    and populate a "selectedData" (see the example) object with all the ids.

    Hope this helps.

Similar Threads

  1. [CLOSED] Print functionality for GridPanel
    By speedstepmem3 in forum 1.x Premium Help
    Replies: 8
    Last Post: Oct 31, 2012, 7:52 PM
  2. Replies: 0
    Last Post: Sep 22, 2012, 11:10 AM
  3. Checkboxselectionmodel and checkall
    By Birgit in forum 1.x Help
    Replies: 3
    Last Post: May 20, 2011, 4:04 PM
  4. Replies: 1
    Last Post: Mar 26, 2011, 6:43 PM
  5. [CLOSED] CheckboxSelectionModel Checkall as Standard
    By macap in forum 1.x Premium Help
    Replies: 11
    Last Post: Aug 05, 2009, 10:17 AM

Posting Permissions