SISBLU Software Posted February 28, 2020 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
SISBLU Software Posted March 2, 2020 Author 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
SISBLU Software Posted March 2, 2020 Author 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
picyka Posted February 11, 2022 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
picyka Posted February 12, 2022 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
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.