show/hide buttons in rows depending on the value of a column

show/hide buttons in rows depending on the value of a column

mbonoambonoa Posts: 2Questions: 1Answers: 0

Hi,
I have a datatable with the data plus two buttons for row (edit and delete).
One of the columns is a date and if that date is different from current date I don't
want to show these two buttons.
I have added those buttons with defaultContent.
Thanks.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 17,690Questions: 25Answers: 4,197
    Answer ✓

    Use columns.render instead then you can use if statements to determine which buttons to show.

    Kevin

  • mbonoambonoa Posts: 2Questions: 1Answers: 0

    Thanks Kevin.
    I've solved it.

Sign In or Register to comment.