Jump to content

TUniDBGrid: Selection lost on enter


Jean-Marc Kiener

Recommended Posts

Hi,

i updated to unigui version 1.50.0.1482. Now i have a problem in a modal search form who contains a TUniDBGrid. The grid has dgRowSelect, dgCheckSelect and dgMultiSelect set to true, so the user can select serveral rows with the keyboard. When hit the enter key i take the selected rows and do some things. I have a OnKeyDown event on the grid to catch enter key. Before updating to the new version all works like expected. Now the behaviour of the grid has changed. Immediatly after hitting enter key the selection is lost. I am not able to get the selected rows and take some action with the enter key. You can try it for yourself in "GridCheckSelect" demo. Add a OnKeyDown event handler to the grid and see whats happening. Selection is lost after hitting the enter key.

Is this a bug or a wanted new behaviour of the Grid?

 

2019-02-08_15-01-10.gif

Link to comment
Share on other sites

23 minutes ago, Sherzod said:

I'm also not sure is this normal behavior or not?

Can you try this approach for now?:

function beforecellkeydown(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
{
    if (e.keyCode == 13) {
        e.ctrlKey = true;
    }
}

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...