Search a column with prefix text only in datatable
Search a column with prefix text only in datatable
thanabalan
Posts: 1Questions: 0Answers: 0
Please give me the solution how can i search the column with prefix text only in data table. I taken lot of time for trying this , but i can't able to find the solution for this . Please help me.
my code is below
var oTable = $('#tablename').dataTable({
"bPaginate": false,
"bInfo": false,
"bFilter": true,
"bAutoWidth": false,
"sScrollY": 302,
"sDom": "frtip",
"aoColumns": [
{ "sWidth": "0px", "bSortable": true },
{ "sWidth": "63px", "bSortable": true },
{ "bSearchable": true, "sWidth": "40px", "bSortable": false },
{ "bSortable": true },
{ "sWidth": "40px", "bSortable": true },
{ "sWidth": "40px", "bSortable": true },
{ "sWidth": "40px", "bSortable": true },
]
});
$(window).bind('resize', function () {
oTable.fnAdjustColumnSizing();
});
my code is below
var oTable = $('#tablename').dataTable({
"bPaginate": false,
"bInfo": false,
"bFilter": true,
"bAutoWidth": false,
"sScrollY": 302,
"sDom": "frtip",
"aoColumns": [
{ "sWidth": "0px", "bSortable": true },
{ "sWidth": "63px", "bSortable": true },
{ "bSearchable": true, "sWidth": "40px", "bSortable": false },
{ "bSortable": true },
{ "sWidth": "40px", "bSortable": true },
{ "sWidth": "40px", "bSortable": true },
{ "sWidth": "40px", "bSortable": true },
]
});
$(window).bind('resize', function () {
oTable.fnAdjustColumnSizing();
});
This discussion has been closed.