column reodering and column filtering conflicting without compatibility view?
column reodering and column filtering conflicting without compatibility view?
using 1.10.2 version my code is
state save is only working without compaibiltiy view and column reodering is conflicting with column filtering in without compatibility view and working in compatibility so I need evertyhing working without compatibility view in IE 10 browser.
$(document).ready(function() {
var table;
// DataTable
table = $('#example').dataTable({
"processing": true,
stateSave: true,
"deferRender": true, // to make the search fast
"dom": 'C<"clear">Rfltipr', // for column Re-odering and column visibilty.
"ajax": {
"url": "/my/example.so",
"type": "GET"
},
"columns": [{
"title": "name",
"data": "name",
"name": "name"
}, {
"title": "addeddate",
"data": "addeddate",
"name": "added date"
}]
});
table.columnFilter({
sPlaceHolder: "head:before",
aoColumns: [{
type: "text"
}, {
type: "date-range",
bRegex: true,
bSmart: true
}
}
]
}); $.datepicker.regional[""].dateFormat = 'yy-mm-dd'; $.datepicker.setDefaults($.datepicker.regional['']);
Answers
Can anyone help me in this ...thanks in advance.
I am having the same issue. Any help would be great.
Error is in this code:
var e=c.aoColumns,f=e[d],g=c.aoData,i,j,m;if(a!==k&&f.bVisible!==a){if(a){var l=h.inArray(!0,D(e,"bVisible"),d+1);i=0;for(j=g.length;i<j;i++)m=g[i].nTr,e=g[i].anCells,m&&m.insertBefore(e[d],e[l]||null)}else h(D(c.aoData,"anCells",d)).detach();f.bVisible=a;ga(c,c.aoHeader);ga(c,c.aoFooter);if(b===k||b)Y(c),
my issue was using column filter add-on which is not a in-built library of datatables. so now I am using individual column search of data columns which is not conflicting. https://datatables.net/examples/api/multi_filter.html
just saying that yadcf support col reorder out of the box (among dozens of its features) see showcase