문제

I am using the mvc contrib grid and generate the pager like this:

<%= Html.Pager((IPagination)Model) %>

This produces something like this:

Showing 11 - 20 of 200 first | prev | next | last

Is there a simple way to produce something like this which shows 'neighboring pages':

Showing 11 - 20 of 200 first | prev | 1 2 3 4 ... | next | last

In other words to allow the user to 'jump pages'. I hope this makes sense.

Thanks.

Christian

도움이 되었습니까?

해결책

MVCContrib's Pager doesn't support this. You could take a look at this blog post for a sample implementation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top