[CLOSED] How to select all elements in a gridvew

  1. #1

    [CLOSED] How to select all elements in a gridvew

    Hi

    When I fill the gridpanel the control the information is displayed in parts (pagination)
    but when i try to select all items in the checked control only select the first page, how can i get all rows in the control?

    This example presents the same situation
    https://examples1.ext.net/#/GridPane...box_Selection/

    Thanks in advance!
    Last edited by Daniil; Sep 21, 2012 at 6:12 AM. Reason: [CLOSED]
  2. #2
    Hi,

    I can suggest the following solution.

    Example
    <ext:CheckboxSelectionModel runat="server">
        <Listeners>
            <BeforeCheckAllClick Fn="onBeforeCheckAllClick" />
        </Listeners>
    </ext:CheckboxSelectionModel>
    var onBeforeCheckAllClick = function (sm, checked) {
        sm.grid.clearMemory();
        
        if (!checked) {
            Ext.each(sm.grid.getStore().getAllRange(), function (rec, index) {
                sm.grid.selectedIds[rec.id] ={
                    id : rec.id,
                    index : index
                };
            });
        }
    };
  3. #3

    Thanks

    Hi Daniil

    The information was very useful !!!
    Thanks again
  4. #4
    Here is a solution for Ext.NET v2.
    http://forums.ext.net/showthread.php?26559

Similar Threads

  1. Remove elements from PagingToolbar
    By adipoaca in forum 1.x Help
    Replies: 1
    Last Post: Nov 17, 2011, 8:38 AM
  2. [CLOSED] Dataview + anchor elements
    By farisqadadeh in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2011, 11:29 AM
  3. Viewport and inner elements
    By unaltro2 in forum 1.x Help
    Replies: 0
    Last Post: Feb 01, 2011, 8:11 AM
  4. Get id of elements into page.ascx
    By flaviodamaia in forum 1.x Help
    Replies: 3
    Last Post: Jan 23, 2009, 7:26 AM
  5. Replies: 1
    Last Post: Oct 10, 2008, 8:38 PM

Tags for this Thread

Posting Permissions