|
I've been working on a new project with mvc4.
I wanted to use the webgrid helper for showing data.
The table tag needed some extra data for javascript so i wanted to put these in a "data-link" attribute.
@grid.GetHtml( htmlAttribtues: new {data-link: "4"} ) (and the columns ofcourse)
Didn't work. This style of adding attributes work on all types of helpers ( editorfor, labelfor, etc... )
What would be the best way to get this working ?
|