Datatables + serverside + colreorder + yadcf
Datatables + serverside + colreorder + yadcf
Hi, this is my problem, I've defined a serverside datatable with colreorder. The columns are already initialized swapped via the order property, like this:
"colReorder": {
"order": [0, 1, 10, 2, 3, 4, 5, 6, 7, 8, 9],
fixedColumns: 11 //no column can be dragged
}
Then I use yadcf to define a filter on column 2:
yadcf.init(dTable, [
{
column_number: 2
}
]);
So, I would expect a select filter visible in the forth column of my datatable, despite the index. This is where the problem arises: the table is rendered with two select filters, one in the third visible column (data column 10, visibile index 2), correctly populated with server side values and even doing its job when selecting a filter value, and another empty select filter inside visible column index 3, that is data column 2, where I would like it to be.
So in essence, the filter works but it's not inside the correct column, where there's another one empty.
Any help? thanks.
Answers
Hi,
I haven't tried yadcf with pre swapped columns, the
column_number
of yadcf applys to the original column position. If you will provide a link to your page I can take a look and see what can be done.(I'm the author of yadcf)
Hi Daniel, unfortunately I'm on a corporate network, I can't give you the link. I'll see if I can create a dummy project and recreate the bug for you to analyze. Thank you very much!