PDA

View Full Version : Paging in GridPanel



Rakeshkumar.a
Nov 29, 2010, 8:16 AM
Hi i've have gone through example in this link "http://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..

Daniil
Nov 29, 2010, 5:54 PM
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>