PDA

View Full Version : JsonStore remove method taking terribly long time



saeedmalik
15 Feb 2011, 2:34 AM
Hi Guys, I am using JsonStore for populating GridPanel(containing paging). GridPanel displays 200 records per page. The problems lies when 200 records are selected and removed from store and then changes in the store are commited to server by calling the save method of the store. Removing from the store on client side is taking massive amount of time, response time from server is fine.

Can some one please help me in optimising this unacceptable response time.

var selectedRecords = this.editGridServices.getSelectionModel().getSelections();
myStore.remove(selectedRecords); // line taking massive amount of time
myStore.save();