Search a column with prefix text only in datatable
Search a column with prefix text only in datatable
![thanabalan](https://secure.gravatar.com/avatar/30eb197b31f659fc9defb896e1f66b99/?default=https%3A%2F%2Fvanillicon.com%2F30eb197b31f659fc9defb896e1f66b99_200.png&rating=g&size=120)
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.