Jan 04, 2015, 6:17 PM
[CLOSED] Grid Panel Continuous Cell Editing in v1.x not in v2.x?
Hi
I need to simulate the continuous editing of Grid Panel v1.x in v2.x. meaning when i put in a value in a cell and press enter to accept it, i need to move to the next row in same column. When i Press Tab it moves to the next column.
I saw several post on the issue, but wasn't enough to help or point me in the correct direction.
This snippet seem workable however all my column are created in code behind can you provide me with a sample on how to add the Listeners Specialkey handler in code behind or any order solutions.
Thanks a lot.
I need to simulate the continuous editing of Grid Panel v1.x in v2.x. meaning when i put in a value in a cell and press enter to accept it, i need to move to the next row in same column. When i Press Tab it moves to the next column.
I saw several post on the issue, but wasn't enough to help or point me in the correct direction.
This snippet seem workable however all my column are created in code behind can you provide me with a sample on how to add the Listeners Specialkey handler in code behind or any order solutions.
Thanks a lot.
NumberField
<ext:NumberField runat="server">
<Listeners>
<SpecialKey Handler="if (e.getKey() === e.ENTER) {
this.up('gridpanel').enterWasPressed = true;
}">
</SpecialKey>
</Listeners>
</ext:NumberField>
CellEditing
<ext:CellEditing runat="server">
<Listeners>
<Edit Handler="if (e.grid.enterWasPressed) {
this.startEdit(e.rowIdx + 1, e.column);
e.grid.enterWasPressed = false;
}" />
</Listeners>
</ext:CellEditing>
Last edited by Daniil; Jan 16, 2015 at 9:21 AM.
Reason: [CLOSED]