-
Notifications
You must be signed in to change notification settings - Fork 10
filterAll is not a function #5
Comments
Thanks @shovondu86! It's easy to lose track of all the smaller features. This one is listed in the SO answer which serves as de facto documentation for this topic, which I'll double check when I fix this soon. |
Just adding filterAll function with the same functionality of _table.redraw works. _table.filterAll = function() {
_dt.clear()
.rows.add(_dimension.top(Infinity))
.draw();
}; ``` |
HI I now get get "DataTables warning: table id=DataTables_Table_0 - Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3" Any thoughts as to what else can be the issue? |
@YendorMc, I can’t think of any reason why this code would work for redraw but not for filterAll. Just to confirm, do you mean that you get the warning when you click the ‘Reset All’ link? Or some other time? |
Yes - I do get the warning when I do "Reset All' (it's an alert), or also when I have a preset "View" when I set filters on 'presets' function filterit(filters){
dc.filterAll();
if (filters == "Region 1"){
isStateSelect.filter([["AR ","TX ","AL "]])
}
else if (filters == "Region 2"){
isStateSelect.filter([["FL ","GA "]])
}
dc.renderAll();
}; It does work after the popup warning, but would be nice to figure out the annoying popup warning. On a side note - dc.js is absolutely amazing, Gordon! |
The text was updated successfully, but these errors were encountered: