Does anyone have a working sample of json paging for mvc3 webgrid?
I’ve been trawling the interwebs for hours now looking for this and the best i can find is this link: Efficient Paging with WebGrid Web Helper – ASP.NET MVC 3 RC
I’m not convinced by the idea of writing the html in the controller though and I couldn’t get the syntax right for creating edit/delete links.
Cheers!
So it turns out that most of the examples out there greatly overcomplicate matters.
A great example can be found here
It turns out the key is in the property
ajaxUpdateContainerIdwhich isgridin my case.This wires up the grid to work without a full page refresh automagically.
I’ve posted some code from what I’m working on to provide the appropriate syntaxt.