How can i get the value of the input columnFilter in datatable?

How can i get the value of the input columnFilter in datatable?

maySaghiramaySaghira Posts: 5Questions: 0Answers: 0
edited January 2014 in TableTools
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]

Replies

  • netametanetameta Posts: 39Questions: 0Answers: 0
    well i dont know of a conventional way like a normal dataTable way of doing that however if you'll look into the plugin file

    search for the function doColumnFilter and look for keyup you'll see the values you are looking for.

    what are you trying to achieve ?
  • maySaghiramaySaghira Posts: 5Questions: 0Answers: 0
    can you tell me please what is the function fnclick to generate a pdf using the tableTools ?
    i've search for the function doCulumnFilter but i didn't find anything !!!
  • netametanetameta Posts: 39Questions: 0Answers: 0
    docolumnFilter is in the plguin column filter its around the line 130.
  • maySaghiramaySaghira Posts: 5Questions: 0Answers: 0
    ok , i found it , but i don't know how can i use it ?? can you help me with any idea !!!
  • netametanetameta Posts: 39Questions: 0Answers: 0
    What are you trying to achieve? the values of those and the binds are in that function.
  • maySaghiramaySaghira Posts: 5Questions: 0Answers: 0
    edited January 2014
    yeah i can get it , thanks but i can t do what i want m i want to send those values to the pdf function to print them but i can t ??
This discussion has been closed.