Paging in GridPanel

  1. #1

    Paging in GridPanel

    Hi i've have gone through example in this link "https://examples1.ext.net/#/GridPanel/ArrayGrid/ArrayWithPaging/"

    In that example Page size of the grid is assigned to the value selected from the DropDownList..

    Every thing is working fine...

    Now when i select ALL in that DropDownList i want to show all records in gridpanel..

    How to do this..
    Plz help me..

    Thank you in advance..
  2. #2
    Hi,

    It can look something like this:

    Example
    <ext:ComboBox runat="server" Width="80">
        <Items>
            <ext:ListItem Text="1" />
            <ext:ListItem Text="2" />
            <ext:ListItem Text="10" />
            <ext:ListItem Text="20" />
            <ext:ListItem Text="Show all" />
        </Items>
        <SelectedItem Value="10" />
        <Listeners>
            <Select Handler="var v = this.getValue(); 
                            #{PagingToolbar1}.pageSize = (v == 'Show all') ? #{GridPanel1}.getStore().getTotalCount() : parseInt(v); 
                            #{PagingToolbar1}.doLoad();" />
        </Listeners>
    </ext:ComboBox>

Similar Threads

  1. GridPanel grouping and paging
    By milenios in forum 2.x Help
    Replies: 4
    Last Post: Aug 13, 2012, 9:14 PM
  2. Gridpanel paging bug
    By kakagu in forum 1.x Help
    Replies: 2
    Last Post: Apr 07, 2012, 1:31 PM
  3. GridPanel Paging with PageProxy
    By jigpatel06 in forum 1.x Help
    Replies: 3
    Last Post: Mar 11, 2011, 10:33 AM
  4. Paging GridPanel
    By marcmvc in forum 1.x Help
    Replies: 2
    Last Post: Jul 21, 2010, 10:28 PM
  5. GridPanel Paging
    By Yannis in forum 1.x Help
    Replies: 3
    Last Post: Jun 30, 2010, 11:27 PM

Posting Permissions