Apr 09, 2013, 1:09 PM
[CLOSED] How to enable pineditor after inserting a new row
Hello,
I have a Adressbook similar to this demo:
https://examples2.ext.net/#/GridPane...mn/Pin_Editor/
This is the editing start/stop edit function like in the demo:
Regards
I have a Adressbook similar to this demo:
https://examples2.ext.net/#/GridPane...mn/Pin_Editor/
This is the editing start/stop edit function like in the demo:
var pinEditors = function (btn, pressed) {
var columnConfig = btn.column,
column = columnConfig.column;
if (pressed) {
column.pinOverComponent();
column.showComponent(columnConfig.record, true);
App.buttonSave.disable();
} else {
column.unpinOverComponent();
column.hideComponent(true);
App.buttonSave.enable();
}
};
I have a 'New' button that adds a new row: <ext:Button ID="ButtonAdd" runat="server" Text="Neu" Icon="Add" ToolTip="Neuen Eintrag hinzufügen">
<Listeners>
<Click Handler="var rowIndex = #{GridPanelAddress}.store.insert(0, {}); #{GridPanelAddress}.getView().focusRow(0);" />
</Listeners>
</ext:Button>
Is there any way to activate the edit mode (with a toggled pin button) after the new row has been inserted? Currently, the user needs to hover the empty row and click the pin editor button. Regards
Last edited by Daniil; Apr 16, 2013 at 5:31 AM.
Reason: [CLOSED]