我使用Datatables 1.10.2。我试图在数据表中使用列重新进行列重写,但是列重新排序禁用了列过滤。但它只适用于IE 10的兼容视图。我需要使用没有兼容视图的IE浏览器。有谁可以帮忙。提前致谢。
这是我的代码:
$(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['']);
$(function() {
$("#dialog").dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
}
});
$("#opener").click(function() {
$("#dialog").dialog("open");
});
});