This project is read-only.

Use of PagerFor at top and bottom page does not work

Nov 1, 2012 at 11:59 PM

If I use PagerFor 2 times on a page, once for the top and once for the bottom, the bottom one does not work.  Is this the intended functionality?

 

Thanks

Coordinator
Nov 2, 2012 at 2:02 AM

Do you mean youn insert two pagers in the same page?

No the PagerFort doesnt work because you insert two input fields with the same name in the same form (the input filed containing the page. However you can have two pagers if you want by using client side technologies, that is client blocks and the Client Pager helper. In this case a client side ViewModel is created and both pagers are bound to the same properties of the client side ViewModel. Now since the binding is a knockout binding changing one pager will cause also the other change in the same way...that probably is what you want to do.