Jump to content

How to detect if TUniDBGrid is in edit mode ?


KingOrmon

Recommended Posts

Hi,

The main problem is that typing in a editor column (like UniLookCombo) all key down events are triggered to UniDBGrid, and it generates problems if you are monitoring this keys for other actions.

Example:

if you press key_down for select an item of edit (UniLookCombo) it triggers VK_Down of UniDBGrid. And I think that it is not correct

Link to comment
Share on other sites

52 minutes ago, KingOrmon said:

The main problem is that typing in a editor column (like UniLookCombo) all key down events are triggered to UniDBGrid, and it generates problems if you are monitoring this keys for other actions.

Can you try this approach?

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
    columns.forEach(function(col) {
        if (col.getEditor()) {
            col.getEditor().addListener('keydown', function(field, e) {
                e.stopPropagation()
            })
        } 
    });
}

 

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...