My problem with ultrawebgrid PagingIn 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 showLike 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.
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
The sample which you are suggesting is not helpful for this particular case.
Even I want to implement this way, but not able to get solution.