Hi, I am using WebGrid in my mvc3 project. I use default setup of webgrid property ( rowsPerPage )to set the paging number, however, I see some site uses a combobox or dropdown box to menually change the rowsPerPage, so the webgrid can display in different
rows of data, anybody knows how to achieve that?
As well, some site also used a radio button to change the display format of webgrid, which can display data without paging, user select this option, the data in webgrid will not display in paying, in stead, it display entire data in one page with scrool
bar on the right site.
I appreciate anybody knows how to achieve these two functions above mentioned, better with some good examples as I am new in MVC. thanks a lot,
Peter Cong
Member
527 Points
681 Posts
How to manually set Paging number of MVC 3 WebGrid in a combobox field and replacing paging with ...
Mar 05, 2012 11:31 PM|LINK
Hi, I am using WebGrid in my mvc3 project. I use default setup of webgrid property ( rowsPerPage )to set the paging number, however, I see some site uses a combobox or dropdown box to menually change the rowsPerPage, so the webgrid can display in different rows of data, anybody knows how to achieve that?
As well, some site also used a radio button to change the display format of webgrid, which can display data without paging, user select this option, the data in webgrid will not display in paying, in stead, it display entire data in one page with scrool bar on the right site.
I appreciate anybody knows how to achieve these two functions above mentioned, better with some good examples as I am new in MVC. thanks a lot,