PDA

View Full Version : grid reorder after insert a row



HyGy
22 Nov 2011, 6:45 AM
If i insert a row in a grid. How can I reorder it, to refresh the grids internal index what is used by getAt(), removeAt(), and etc? (Without, reload the servers original json store, couse there is a save button, to send the inserted columns to the server.)

Or if I drag and drop from grid to grid, after the drop, how can I re order the list?

tobiu
22 Nov 2011, 8:39 AM
If you allow local sorting (remoteSort - config set to false),
you can just use one of the Stores sort functions (like sort, sortBy).

HyGy
22 Nov 2011, 8:49 AM
Thanks!

But I need remote sorting, because, the groups is not sorted by alphabetic order, and I get it from the server in correct order. I just need to, reorder it in the group. (And refresh, the internal index, because as I see it copies it from the top grid to bottom.)