I am trying to add 2 grid.mvc in the same page (with the same structure) and fitering, shorting and paging apply to both grids. I cannot to find proper documentation...but i have seen people uses GridRenderOptions.Create(gridName, viewName) shall I separate the grid in partial views or something like that??
thanks
I prefer using editor templates for your solution
@Html.EditorFor(model => model.FirstGrid)
@Html.EditorFor(model => model.SecondGrid)
Instead of partial view create two cshtml editor templates in shared folder.
Still please refer this for your final choice ASP.NET MVC 3 - Partial vs Display Template vs Editor Template
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.