1 Oct 2010 7:57 AM #1
Unanswered: Restful store: changing order of records
I'm working on a web-application that uses a RESTful store based on this example to render a restful grid.
Everything works fines, but now I have to implement a re-order action on a subset of records. I didn't find a better way to implement this action than to just remove the affected records from the store and than inserting them again in the right order. The problem with this approach is that all the remove/insert actions on the store result in a bunch of DELETE/PUT requests to the server, which is not what I had in mind since it seems like a bit of overkill, but there may be no other way?
I've tried to put store.suspendEvents() - store.resumeEvents() around the re-order code, which does suppress the DELETE/PUT requests to the server, but then my Grid is out of sync (records are still in the previous order). Is there a way to force the Grid to synchronize its state with the store?
Thanks in advance!
By arboooz in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 24 Aug 2010, 1:33 PM
By Maxrunner in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 14 Jun 2010, 3:58 AM
By StyleWarz in forum Ext 3.x: Help & DiscussionReplies: 13Last Post: 31 Mar 2010, 1:11 AM
By arthurakay in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 17 Mar 2009, 6:56 AM
By jrcunha in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 14 Mar 2009, 10:22 AM