How to use if condition with datatables
How to use if condition with datatables

I have datatable for index list view in asp.net core 3.1, I have a category where status would be either active or inactive, I want to implement condition if status is inactive only details button is visible but if status is active then details, edit or delete should be visible/
This discussion has been closed.
Answers
columns.render
should do the trick there.Colin