0

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

1 Answers1

0

enter image description hereI 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

Gaurav Moolani
  • 342
  • 1
  • 3
  • 12