Best approach to have a button in every row?

Best approach to have a button in every row?

KarloKarlo Posts: 16Questions: 6Answers: 0

Hi!

I'm looking for a way to have a button in each DataTable row. I didn't find this built-in, so I created this fiddle using an unbound column with defaultContent set to some html markup:
https://jsfiddle.net/wxvwx066/

Can you please have a look and tell me if this is good or whether there's a better way?

Thanks!
Karlo

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 44,717Questions: 1Answers: 6,000 Site admin
    Answer ✓

    I would suggest using a renderer with a delegated event handler. However, the approach you have taken is absolutely valid as well.

    Allan

Sign In or Register to comment.