Hi.
I have a grid with both .EnablePersistence() and .AllowReordering().
At some point, based on a condition in a js, I am deleting everything from localstorage, but the MVC grid still persists the columns ordering :(
Here's the JS
var arr = []; // Array to hold the keys
var i;
for (i = 0; i < localStorage.length; i++) {
if (localStorage.key(i).substring(0, 3) === "$ej") {
arr.push(localStorage.key(i));
}
}
for (i = 0; i < arr.length; i++) {
localStorage.removeItem(arr[i]);
}