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
265
problem with QuickPages in ultrawebgrid
posted

My problem with ultrawebgrid Paging
In my Project
In my webgrid  i am showing user two paging style i.e(PagerStyleMode.Numeric in case of record less that 40 )
and PagerStyleMode.quickpages in case of record are greater than 40.
if (pagenumber > 40)
   {
  dgDockets.DisplayLayout.Pager.StyleMode = PagerStyleMode.QuickPages;
   }
  else
   {
   dgDockets.DisplayLayout.Pager.StyleMode = PagerStyleMode.Numeric;

   }
Case: I Need to show minimum 40 pages at once for that i set

 dgDockets.DisplayLayout.Pager.QuickPages = 40;

But in this case it is showing 40 previous page and 40 next page if i click on page no 40 (long pager).

I want that if user click on 40th page all other pages before 40 should hide and next 40 page should show
Like

40 41 42 ----------------------------------
Similarly if he click on 80 all previouse should hide and paging should start from 80

User can also go back to page no 1.

Can someone  help me.

Parents
No Data
Reply
  • 24671
    posted

     Hi,

    You can implement your own custom paging in the UltraWebGrid. Please refer to the Infragistics Sample browser for an example:

    http://samples.infragistics.com/2008.3/WebFeatureBrowser/Default.aspx

    WebGrid -> Navigating & Selecting -> Paging - Custom

     I hope this helps. Thanks for your feedback,

    Angel

Children