how to filter the data tables columns using check box, price slider with dynamically
how to filter the data tables columns using check box, price slider with dynamically
vetrivel
Posts: 2Questions: 0Answers: 0
i m new to data table , but its very useful for every developer, its saves my lot of valuable time, i have one doutb on that, how to filter the each column using different form elements (like textbox with autocomplete, dropdown, price silder, check box) with dynamic content.. i have seen lot of client side examples, but i need server side examples... using php...
[code]
$(document).ready(function() {
oTable1 = $('#oneway_output').dataTable( {
"oLanguage": {
"sEmptyTable": "Sorry
No buses available for this route right now. Please try again"
},
"aoColumns": [
null,
{"bVisible":false},
null,
null,
null,
null,
null,
null,
],
"sAjaxSource": "getallsource.php",
"sProcessing": true,
"bPaginate": false,
"bFilter": false,
"bAutoWidth": true,
"sServerMethod": "POST",
"bScrollCollapse": true,
"sDom": '<"top"i>W<"clear">lfrtip',
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "source", "value": "<?php echo $source;?>" } );
aoData.push( { "name": "destination", "value": "<?php echo $destination;?>" } );
aoData.push( { "name": "doj", "value": "<?php echo $doj;?>" } );
aoData.push( { "name": "triptype", "value": "<?php echo $trip_type;?>" } );
},
"oColumnFilterWidgets": {
"aiExclude": [0,1,2,3,4,5,6,7,8,9,10,11]
},
"fnInitComplete": function() {
$('#iniContent').hide();
}
} );
} );
[/code]
pls help me guys..
thanks in advance
[code]
$(document).ready(function() {
oTable1 = $('#oneway_output').dataTable( {
"oLanguage": {
"sEmptyTable": "Sorry
No buses available for this route right now. Please try again"
},
"aoColumns": [
null,
{"bVisible":false},
null,
null,
null,
null,
null,
null,
],
"sAjaxSource": "getallsource.php",
"sProcessing": true,
"bPaginate": false,
"bFilter": false,
"bAutoWidth": true,
"sServerMethod": "POST",
"bScrollCollapse": true,
"sDom": '<"top"i>W<"clear">lfrtip',
"fnServerParams": function ( aoData ) {
aoData.push( { "name": "source", "value": "<?php echo $source;?>" } );
aoData.push( { "name": "destination", "value": "<?php echo $destination;?>" } );
aoData.push( { "name": "doj", "value": "<?php echo $doj;?>" } );
aoData.push( { "name": "triptype", "value": "<?php echo $trip_type;?>" } );
},
"oColumnFilterWidgets": {
"aiExclude": [0,1,2,3,4,5,6,7,8,9,10,11]
},
"fnInitComplete": function() {
$('#iniContent').hide();
}
} );
} );
[/code]
pls help me guys..
thanks in advance
This discussion has been closed.
Replies
Allan