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
35
Paging in Web Grid
posted

Hi:

I plan to use the Web Grid for displaying large number of records using ASP.NET. The issue i am facing currently is that when I enable paging, i cannot restrict the no of page links that appears in the page. If i have 10000 records in the resultset and the page size is set as 10, it displays 1000 page links pointing to all the pages. i want only a few of the links to be displayed, let's say 5 of them. Remaining links can be accessed using a "Next" or "Previous" button/link.

 I have seen an example under the JSF examples where the output is how i should get it

http://java.samples.infragistics.com/NetAdvantage/JSF/2006.1/

, but for ASP.NET, i can't find a similar one.

How it is coming currently is shown below:

1  2  3  4  5  6  7 8 9  10  11 12  13  14 15  16  17

How i want it is shown below.


<Previous>  5  6  7  8  9  <Next> 

 

 

 -Faustus.