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.
I wonder how many people just give up after getting the "Follow this link" response for infragistics products. I think the support folks get graded by how many links they can post. Just because it has no bearing on the problem is not important. Just post a response. The link above is like "here go the the main page and find a solution".... Total Time waster and makes you hate this product more than you should.
Myself I'm just trying to find a solution to getting more than 50 records on the first load of the webultragrid. Anybody got a solution. Please Infra Team. Just let it go. I don't need a link to a marketing page.
Hi in my Context i solve my Problem as shown may be this can help you.
Set Pattern as follows
if (pagenumber > 10) { dgDockets.DisplayLayout.Pager.Pattern = "[prev] [default] [next]"; } else if (pagenumber > 0 && pagenumber < 10) { dgDockets.DisplayLayout.Pager.Pattern = "[default]"; } else if (pagenumber == 0) { dgDockets.DisplayLayout.Pager.Pattern = ""; }
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.
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