How can i get the value of the input columnFilter in datatable?
How can i get the value of the input columnFilter in datatable?
maySaghira
Posts: 5Questions: 0Answers: 0
Hi all , I've passed too many hours looking for how I can get the value of the inputs using in the columnFilter in datatable 1.8.2 ? I need those value to view it in the printed file.
[code]
$(document).ready(function(){
$.datepicker.regional[""].dateFormat = 'yy-mm-dd';
$.datepicker.setDefaults($.datepicker.regional['']);
$('#example').dataTable({
"bRetrieve":true,
"bDestroy":true,
"aoColumns": [
{ "sWidth": "100px" },
null,
null
]
} )
.columnFilter({ sPlaceHolder: "head:before",
aoColumns: [ { type: "select",sSelector: "#secteurFilter" },
{ type: "date-range", sRangeFormat: " {from}
{to}",sSelector: "#dateFilter" },
{ type: "select" , sSelector: "#parcelleFilter"},
{ type: "select" , sSelector: "#varieteFilter" },
{ type: "select" , sSelector: "#qualiteFilter" }
]
});
});
[/code]
[code]
$(document).ready(function(){
$.datepicker.regional[""].dateFormat = 'yy-mm-dd';
$.datepicker.setDefaults($.datepicker.regional['']);
$('#example').dataTable({
"bRetrieve":true,
"bDestroy":true,
"aoColumns": [
{ "sWidth": "100px" },
null,
null
]
} )
.columnFilter({ sPlaceHolder: "head:before",
aoColumns: [ { type: "select",sSelector: "#secteurFilter" },
{ type: "date-range", sRangeFormat: " {from}
{to}",sSelector: "#dateFilter" },
{ type: "select" , sSelector: "#parcelleFilter"},
{ type: "select" , sSelector: "#varieteFilter" },
{ type: "select" , sSelector: "#qualiteFilter" }
]
});
});
[/code]
This discussion has been closed.
Replies
search for the function doColumnFilter and look for keyup you'll see the values you are looking for.
what are you trying to achieve ?
i've search for the function doCulumnFilter but i didn't find anything !!!