Jump to content

roweditor key enter


SISBLU Software

Recommended Posts

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;
    }
   })
  }    
 }
}

Link to comment
Share on other sites

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;
}

 

Link to comment
Share on other sites

  • 1 year later...
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?

Link to comment
Share on other sites

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;
                }
            })
        }
    }
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...