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
Post a Comment