Good afternoon …
I’m trying to implement a web grid web grid and call this the partial, but when called and
of a type error sending partial and error type required .. I saw that I looked at the web partial grid is the model that I mandaondo IEnumerable and not IEnumerable … have some form of change that make the grid work with a web page not IEnumerable?
and another thing when I call a partial view has to be the same type of view?
to call gives a view of another directory?
Good afternoon … I’m trying to implement a web grid web grid and call
Share
If you’re asking if the view holding your WebGrid needs to be strongly typed with IEnumerable<> then the answer is no. You can pass your collection to WebGrid through ViewBag :
But if you’re asking wether WebGrid requires IEnumerable – yes it does, You need to pass a IEnumerable interface implementing object (List<>, Linq result etc. )
To call a partial cross-controllers you can easily do :
take a look at Calling @Html.Partial to display a partial view belonging to a different controller
I really hope that I guessed right about your question …