开发者

Asp.Net MVC WebGrid helper custom attributes for table rows

Is there a way to assign custom data attributes for table rows generated by the WebGrid helper in Asp.Net MVC?

What I would like to end up w开发者_JAVA百科ith is something like this:

<tr data-foo="foo"></tr>


No, AFAIK that's not possible. The best you could do on a tr is to apply a style and an alternating row style. I'd recommend MvcContrib Grid or Telerik Mvc Grid as more advanced alternatives to Microsoft's WebGrid helper.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜