I am trying to set the pageSize dynamically. If i do:
localStorage.getItem('pageSize') || 10,
i do not have a problem.
But if i do:
pageSize: function () {
return parseInt(localStorage.getItem('pageSize')) || 10;
},
the data-source gets reloaded multiple times and NaN appears on the bottom of the grid - page NaN of 100 instead of 1 of 100
Thanks
localStorage.getItem('pageSize') || 10,
i do not have a problem.
But if i do:
pageSize: function () {
return parseInt(localStorage.getItem('pageSize')) || 10;
},
the data-source gets reloaded multiple times and NaN appears on the bottom of the grid - page NaN of 100 instead of 1 of 100
Thanks