Hi,
I have an object which contains quite a few other objects in an IList called possible values. I have successfully used the mvccontrib grid plus paging before but would like to add the grid to the object’s page – hope you know what I mean. So I did something like this in my controller:
[AcceptVerbs(HttpVerbs.Get)]
public ViewResult Bla(string Id, int? page)
ViewData["PossibleValues"] = XYZ.PossibleValues.AsPagination(page ?? 1, 10);
PossibleValues definitely contains data but not ViewData["PossibleValues"]. Is this because AsPagination relies on lazy loading or something? Thanks.
Chris