SISBLU Software Posted February 28, 2020 Share Posted February 28, 2020 Please, how do I get the ENTER key to go to the next field in the roweditor? Currently when clicking ENTER the record is SAVED. I want to save with the ENTER key only if it is the last field. Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted March 2, 2020 Author Share Posted March 2, 2020 Solution: UniDBGRID>ExtEvents>reconfigure function reconfigure(sender, store, columns, oldStore, the, eOpts) { for (var i = 0; i < columns.length; i++) { if (columns.getEditor()) { columns.getEditor().on('specialkey', function (field, e) { if (e.getKey() == 13) { e.keyCode = e.TAB; return e.keyCode; } }) } } } Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted March 2, 2020 Author Share Posted March 2, 2020 Correct: UniDBGRID>ExtEvents>reconfigure function reconfigure(sender, store, columns, oldStore, the, eOpts) { for (var i = 0; i < columns.length; i++) { if (columns.getEditor()) { columns.getEditor().on('specialkey', function (field, e) { if (e.getKey() == 13) { e.keyCode = e.TAB; return e.keyCode; } }) } } } -------------------- UniDBGRID>ExtEvents>beforeedit function beforeedit(editor, context, eOpts) { return !editor.editing; } Quote Link to comment Share on other sites More sharing options...
picyka Posted February 11, 2022 Share Posted February 11, 2022 Em 3/2/2020 às 9:22 am, Daha Software disse: Correto: UniDBGRID>ExtEvents>reconfigure reconfiguração de função(remetente, loja, colunas, oldStore, the, eOpts) { para (var i = 0; i < columns.length; i++) { se (colunas.getEditor()) { colunas.getEditor().on('specialkey', função (campo, e) { se (e.getKey() == 13) { e.keyCode = e.TAB; retorno e.keyCode; } }) } } } -------------------- UniDBGRID>ExtEvents>foreedit função antes do edit (editor, contexto, eOpts) { return !editor.editing; } Hi, does this work? Quote Link to comment Share on other sites More sharing options...
picyka Posted February 12, 2022 Share Posted February 12, 2022 function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { for (var i = 0; i < columns.length; i++) { if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function(field, e) { if (e.getKey() == 13) { e.keyCode = e.TAB; return e.keyCode; } }) } } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.