define mData column on condition
define mData column on condition
akhilkhare
Posts: 6Questions: 2Answers: 0
We have a scenario where we need to hide the column based on data shows in row. we did a trick like passed conditional JSON from server, but because we have column define in datatable its thrown an error.
Is there any way to hide a column based on row cell data?
This discussion has been closed.
Answers
Please reply asap..we stuck due to this
I would suggest using the
initComplete
callback orinit
event.Priority support is available if you require urgent help.
Allan
Thanks Allan, its worked for me
"createdRow": function (row, data, index) {
isVisible = false;
}
"initComplete": function (settings, json) {