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
Printable View
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
Hi,
In 0.7 version it is easy
Code:<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>
thanks vlad, that is very helpful