How to set Default Filter Value columnDefs for Server Side Filter
How to set Default Filter Value columnDefs for Server Side Filter
![venkatesan](https://secure.gravatar.com/avatar/7a316935540f372b80005f1ffca2ee5a/?default=https%3A%2F%2Fvanillicon.com%2F7a316935540f372b80005f1ffca2ee5a_200.png&rating=g&size=120)
I m trying to Initialize Datatable Like Below code
$('#' + tableid).DataTable(
{
"columnDefs": [
{
"targets": [0],
"visible": true,
"searchable": false
},
]
}
);
While Adding Column Defenition. I want to add Default Value For Filteration. Somthing Like
{
"targets": [0],
"visible": true,
"searchable": false,
** "value" : 21**
},
On the above "value" added for just showing, and aware Property not present. So is there any way I can Use like that.
Thanks Advance.
This discussion has been closed.
Answers
Hi @venkatesan ,
You just need to use
search
,Cheers,
Colin
Tq.
I have got a solution to Use for separate column also.