HTML attributes on webgrid lines

Asked

Viewed 69 times

2

It is possible to include the attribute data-id-tarefa="@item.id" within each TR using Webgrid? I can include the attribute by Javascript, but all the Trs return me the same value of the id within the attribute and what I need is the value of each one, as if doing by foreach.

1 answer

0


You can include the data-id-task="@item.id" attribute within each TR using Webgrid?

Not. WebGridRow has no methods to work with fields data-.

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

  • unfortunately that’s what I ended up doing, along with the table filters all in hand. Thank you for the answer.

  • @Joséseraphim Try not to leave the answer open. See here how to use the site. Anything, just ask again.

  • can guide me to do this?

  • There is a "V" icon in the vote count of each answer. Just click on it to accept the answer. Additionally, you can vote in favor of the answer by clicking the arrow icon up.

  • 1

    Putz, I didn’t think that there was a button. Thank you very much. Unfortunately my vote won’t count due to my low score

Browser other questions tagged

You are not signed in. Login or sign up in order to post.