Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Filter records based on column data

$
0
0
My data array contains boolean (yes/no), tinyint (0/1/2) values. In fnCreatedRow function, i change it to respective text to display like below:

"fnCreatedRow": function (nRow, aData, iDataIndex) {
                (aData[3] == 'Yes') ? $(nRow.cells[2]).html("Scheduled") : $(nRow.cells[2]).html("Manual");            
            }

Now when i do search with
Schedule
, i am not getting any data. But if i search with
Yes
, i will get the respective row.

Can someone please give me a solution to search on the column data rather than on data array?

Regards,
Prathap.

Viewing all articles
Browse latest Browse all 1816

Trending Articles