开发者

mvc contrib grid - pager

开发者 https://www.devze.com 2023-01-13 22:45 出处:网络
I am using the mvc contrib grid and generate the pager like this: <%= Html.Pager((IPagination)Model) %>

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 se开发者_StackOverflownse.

Thanks.

Christian


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

0

精彩评论

暂无评论...
验证码 换一张
取 消