c# - ASP.NET MVC 3 WebGrid paging issue -


my data access layer returns collection rows single page , total number of rows.

unfortunately webgrid component not allow specify total number of rows or total number of pages (these properties read-only).

has had deal issue before?

you can use bind method on webgrid tell grid use server side paging.

grdv.bind(mydata, rowcount=10000, autosortandpage=false)

setting autosortandpage false tells grid mydata segment of data. show rows of data regardless of page size setting. pager built using rowcount pass in , not number of records in mydata.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -