View Full Version : startEdit does not remain in edit mode

12 Apr 2012, 3:45 PM
I'm having an issue where my action button copies the selected row in my grid. The handler not only copies and inserts the row but it's suppose to put the new row in edit mode.

When I'm debugging I can see it going into edit mode but when I continue it seems to immediately cancel out of the edit. What am I missing?

Here's a snippet of my handler code:

handler: function (gridPanel, rowIndex, colIndex) {
var record = products.getAt(rowIndex).copy();
products.insert(rowIndex + 1, record);
rowEditing.startEdit(rowIndex + 1, 0);

12 Apr 2012, 4:02 PM
I figured it out. My store was set to autoSync: true.

Once I disabled this it worked just fine.