jQuery DataTable - visible column

jQuery DataTable - visible column

faszynskifaszynski Posts: 11Questions: 0Answers: 0
edited December 2012 in General
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?

Replies

This discussion has been closed.