dkang926
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) {
rowEditing.cancelEdit();
var record = products.getAt(rowIndex).copy();
products.insert(rowIndex + 1, record);
rowEditing.startEdit(rowIndex + 1, 0);
}
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) {
rowEditing.cancelEdit();
var record = products.getAt(rowIndex).copy();
products.insert(rowIndex + 1, record);
rowEditing.startEdit(rowIndex + 1, 0);
}