jQuery DataTable - visible column
jQuery DataTable - visible column
I have code:
[code]
$('#table').dataTable({
"aoColumnDefs": [
{ "bVisible": true, "aTargets":[0], "mDataProp":"name" },
{ "bVisible": true, "aTargets":[1], "mDataProp":"surname" },
{ "bVisible": true, "aTargets":[2], "mDataProp":"number" }
]
});[/code]
This code is display when I have variable Search set true, but when I have Search set false I want show only surname and number columns, how can I do that?
[code]
$('#table').dataTable({
"aoColumnDefs": [
{ "bVisible": true, "aTargets":[0], "mDataProp":"name" },
{ "bVisible": true, "aTargets":[1], "mDataProp":"surname" },
{ "bVisible": true, "aTargets":[2], "mDataProp":"number" }
]
});[/code]
This code is display when I have variable Search set true, but when I have Search set false I want show only surname and number columns, how can I do that?
This discussion has been closed.
Replies
Allan