Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35602

Datatable searching

$
0
0

How to make datatable search option only for one column
not other column

my code
var tconfig = {
// "sDom": '<"toolbar">hlfetlp',
"processing": true,
"serverSide": true,
"ajax": {
"url": BASE_URL + "admin/Bus_stop_master/get_bus_stops",
"type": "POST",
"datatype": "json",
"data":{}
},
"columnDefs": [
{
"searchable": false,
"orderable": false,
"targets": 1
}
],
"iDisplayLength": 5,
"aLengthMenu": [[5, 10, 50, -1], [5, 10, 50, "All"]],
"paginate": true,
"paging": true,

    "aoColumnDefs": [
    {
        "bSearchable": false,
        "aTargets": [0]
    }
    ]
};
var oTable = $('#example').dataTable(tconfig);

Viewing all articles
Browse latest Browse all 35602

Trending Articles