SscrollY and Column Custom Filter
SscrollY and Column Custom Filter
davcarnaby
Posts: 19Questions: 0Answers: 0
Hi everybody.
I got a problem with scrollY and costum column filter.
If i add "sScrollY": "XXXpx", to my code, my column filter disappear.
Something wrong or a bug??
Help please, regards.
This is the code... :
$(document).ready(function() {
/* Init the table */
$("#global_filter").keyup( fnFilterGlobal );
var oTable = $("#example").dataTable({
"bProcessing": true,
"bServerSide": true,
//"sScrollY": "200px", "sScrollY": "300px",
"aLengthMenu": [[10, 25, 50], [10, 25, 50]],
"bAutoWidth": false,
"aaSorting": [[ 6, "desc" ]],
"sAjaxSource": "id.php",
"sDom": 'T<"clear">lrtp',
....
})
and
$("#example").dataTable().columnFilter(
{
aoColumns: [
null,
null,
null,
{
type: "select",
values: mycars
},
{
type: "select",
values: mycars2
},
{
type: "number-range"
},
null,
null,
null
]
}
);
I got a problem with scrollY and costum column filter.
If i add "sScrollY": "XXXpx", to my code, my column filter disappear.
Something wrong or a bug??
Help please, regards.
This is the code... :
$(document).ready(function() {
/* Init the table */
$("#global_filter").keyup( fnFilterGlobal );
var oTable = $("#example").dataTable({
"bProcessing": true,
"bServerSide": true,
//"sScrollY": "200px", "sScrollY": "300px",
"aLengthMenu": [[10, 25, 50], [10, 25, 50]],
"bAutoWidth": false,
"aaSorting": [[ 6, "desc" ]],
"sAjaxSource": "id.php",
"sDom": 'T<"clear">lrtp',
....
})
and
$("#example").dataTable().columnFilter(
{
aoColumns: [
null,
null,
null,
{
type: "select",
values: mycars
},
{
type: "select",
values: mycars2
},
{
type: "number-range"
},
null,
null,
null
]
}
);
This discussion has been closed.
Replies
http://code.google.com/p/jquery-datatables-column-filter/issues/detail?id=60
http://code.google.com/p/jquery-datatables-column-filter/issues/detail?id=78
Among others.
The column filter plug-in is not part of the DataTables project, so I'm afraid I can't offer any advice or support for it (as I don't actually know how it works!).
Allan