PDA

View Full Version : Grid, state and server side sorting



zerkms
20 Apr 2010, 1:49 PM
Hello.

I have implemented server side sorting (+ paging) of grid and storing grid properties in cookies (via state.CookieProvider).

Use case:
We sort grid by any of column. Update page. Sorting direction mark is at right column, but the actual sorting was sent is default, which specified by store.setDefaultSort('Id', 'desc'); (this is obvious and expected). Now we remove this line.
And after another f5 we see that the sorting mark is still on an expected place, but no sorting field + direction were sent with AJAX-request.

(My thoughts: this happened because store know nothing about grid state at first request)

Why is this happening and is there any way to solve this?

UPD: all is fine, it was my mistake - i forgot about store's autoLoad property is turned on