Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
455
Custom Pager not work
posted

I use the Custom Pager from this tutorial:
http://community.infragistics.com/aspnet/media/p/79157.aspx

When I change a page with the pager, then I see the result from the last selected page.

  • I used 2 webdatagrid on my page.
  • The webdatagrids are placed on an UltraWebTab control
  • I fill the grids in the page load


When I the page is loaded I see page 0
When I select page 2 I see page 0
When I select page 5 I see page 2
When i select page 10 I see page 5

The page change event handler

protected void customPager1_PageChanged(object sender, PageSettingsChangedEventArgs e)
{
    if ((e.TotalNumberOfPages - 1) < e.PageIndex)
    {
        wdg1.Behaviors.Paging.PageIndex = 0;
    }
    else
    {
        wdg1.Behaviors.Paging.PageIndex = e.PageIndex;
    }

What's wrong with the Custom Pager?