[CLOSED] page size selector

  1. #1

    [CLOSED] page size selector

    Hi guys,
    I was sondering if there is any way of adding a DropDown or a TextBox as a plugin to the PagingToolbar so that the user is able to choose the page size for the grid.

    cheers
  2. #2

    RE: [CLOSED] page size selector

    Hi,

    In 0.7 version it is easy

    <ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="Store1">
                        <Items>
                            <ext:ToolbarSeparator />
                            <ext:ComboBox ID="PageSizeCombo" runat="server" Width="40" Editable="false">
                                <Items>
                                    <ext:ListItem Text="1" />
                                    <ext:ListItem Text="5" />
                                    <ext:ListItem Text="10" />
                                    <ext:ListItem Text="15" />
                                    <ext:ListItem Text="20" />
                                </Items>
                                <SelectedItem Value="10" />
                                <Listeners>
                                    <Select Handler="#{PagingToolBar1}.pageSize = parseInt(#{PageSizeCombo}.getValue()); #{PagingToolBar1}.doLoad(0);" />
                                </Listeners>
                            </ext:ComboBox>
                        </Items>
                    </ext:PagingToolBar>

  3. #3

    RE: [CLOSED] page size selector

    thanks vlad, that is very helpful

Similar Threads

  1. [CLOSED] ext:GridPanel: Calculated page size
    By supera in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 4:13 PM
  2. [CLOSED] Huge page size from comboboxes
    By jchau in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 15, 2012, 9:52 PM
  3. [CLOSED] PagingToolbar - save page size
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 19, 2011, 7:27 PM
  4. [CLOSED] Minimum size of a page
    By majunior in forum 1.x Legacy Premium Help
    Replies: 41
    Last Post: Jun 26, 2011, 7:22 PM
  5. [CLOSED] How Can I get the page size that is loaded from a panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 03, 2010, 1:30 PM

Posting Permissions