O'Reilly logo

Ext.NET Web Application Development by Anup Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Paging

To show paging controls we reuse a PagingToolbar, as demonstrated in Chapter 5, Working with Data.

Client-side paging

To enable client-side paging, we just need to do two things. We add a PagingToolbar to the GridPanel. Because a GridPanel inherits a Panel, we just add it either to a docked item, or to one of the special properties such as BottomBar, TopBar, and so on. BottomBar is usually the typical option, so we add it to the GridPanel as follows:

<BottomBar>
    <ext:PagingToolbar runat="server" />
</BottomBar>

Next we simply need to initialize the Store with paging as follows:

<ext:Store runat="server" RemotePaging="false" PageSize="10">

The result will be a paging toolbar at the bottom, as shown in the following screenshot:

If you are using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required