HTML attributes in webgrid lines

2

Is it possible to include the data-id-tarefa="@item.id" attribute within each TR using the WebGrid? I can include in the JavaScript the attribute, but all the TRs return the same value of the id inside the attribute and what I need is the value of each one, as if I were doing the foreach .

    
asked by anonymous 11.06.2015 / 13:55

1 answer

0
  

Is it possible to include the data-id-task="@ item.id" attribute within each TR using the WebGrid?

No. WebGridRow has no methods for work with data- fields.

Prefer to use a <table> normal within @foreach .

    
09.09.2016 / 19:49