fiogf49gjkf0d Hi Raul, thanks for your help!
1) That solution is what i'd ideally would like to implement, but i'm not sure of the correct syntax. I tried a couple of thing, but couldn't get it to work.
2) Thats similar to what i'm currently doing. When the page first loads, i'm getting a reference to the grid, from there i get the store, but i was doing it in a slightly different way, setting the default sort:
grd.getStore().setDefaultSort('startDate', 'asc');
grd.getStore().load();
That seemed to work, but when the user scrolls on the list, the sorting goes out of wack...it allows several pages of scrolling down and then bounces back up and displays several previous months. I'll try your suggestion regarding the sortinfo.direction.
Thanks. |