MvcContrib GridModel : Is it possible to do ActionSyntax in a GridModel
I’ve read this article and it’s quite useful but I can’t apply this. I don’t know if in the newest MVCContrib, they removed the “.Action()” because somehow I cannot access this.
Is there someway i can put the ActionLink of the edit link into a grid model?
Thank you
It seems that the old method has been removed.
Here’s how to do it now:
VB.NET
First, you pass the Html object into the gridmodel class through the constructor, then you can use it from within the gridmodel class.
Then, in your view you pass it through the constructor:
C#
GridModel:
View:
REFERENCE: http://www.jeremyskinner.co.uk/2009/02/22/rewriting-the-mvccontrib-grid-part-2-new-syntax/ (see comment from Amitabh)