PDA

View Full Version : GridPanel + Store Remote + Two grid.



Forn
27 May 2012, 8:08 PM
Hello.
I have the next code for added item tothe grid:


var newRecord = Ext.create('WebUI.model.ModelOperationSystemVersion');
newRecord.set("a_link_ouid", selectedId);

grid.store.insert(0, newRecord);
grid.editingPlugin.startEdit(0, 0);


But when i invoke store.sync(); the store invoke store method twice with the same data:






0Object { action="EXTJSActionListener", method="direct_createOperationSystemVersion", data=[1], ???...}
1Object { action="EXTJSActionListener", method="direct_createOperationSystemVersion", data=[1], ???...}
2Object { action="EXTJSActionListener", method="direct_getOperationSystemVersion_ByOS", data=[1], ???...}

mitchellsimoens
7 Jun 2012, 12:05 PM
Is your store instance shared among two grids?