State save: turn of features
State save: turn of features

Hi,
I do not want to restore sorting, global search and column search. Right now, I "reset" these setting during restore:
stateSaveParams: function (settings, data) {
// Ignore previous column search
for (var index = 0; index < data.columns.length; index++) {
data.columns[index].search.search = "";
}
data.search.search = ""; // Ignore global search
data.order = [[2, "asc"]]; // Ignore column sorting
}
Instead of not applying these settings by overriding them, I'd prefer not to save them at all. Is this possible?
Regards!
This discussion has been closed.