开发者

Asp.Net MVC WebGrid helper custom attributes for table rows

开发者 https://www.devze.com 2023-04-06 20:50 出处:网络
Is there a way to assign custom data attributes for table rows generated by the WebGrid helper in Asp.Net MVC?

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

精彩评论

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

关注公众号