Jump to content

up or down arrows, change value numeric columns grid


Wilton Ergon

Recommended Posts

editing numeric columns on the grid,
pressing up or down arrows, the value is changed, 
this behavior is causing serious problems in my system


I already enabled the NumericEditorHideTrigger 
option
How to disable this behavior?

unigui v.1.90.0.1506

this may be useful, but this is only NumericEditorHideTrigger = false

 

It is natural for the user to use the down arrow to move to the next line, but the record ends up changing improperly

Link to comment
Share on other sites

54 minutes ago, wilton_rad said:

editing numeric columns on the grid,
pressing up or down arrows, the value is changed, 
this behavior is causing serious problems in my system


I already enabled the NumericEditorHideTrigger 
option
How to disable this behavior?

unigui v.1.90.0.1506

this may be useful, but this is only NumericEditorHideTrigger = false

 

It is natural for the user to use the down arrow to move to the next line, but the record ends up changing improperly

Hello,

Sorry, did you open a request then?

http://forums.unigui.com/index.php?/topic/12639-columns-numeric-in-dbgrid-change-value-with-down-arrow/&do=findComment&comment=67452

Link to comment
Share on other sites

1 hour ago, wilton_rad said:

editing numeric columns on the grid,
pressing up or down arrows, the value is changed, 
this behavior is causing serious problems in my system


I already enabled the NumericEditorHideTrigger 
option
How to disable this behavior?

You can try to use this approach for now:

UniDBGrid.ClientEvents.ExtEvents ->

function beforereconfigure(sender, store, columns, oldStore, oldColumns, eOpts) 
{
    columns.forEach(function(col) {
        if (col.editor && col.editor.xtype == "numberfield" && col.editor.hideTrigger) {
            col.editor.keyNavEnabled = false;
            col.editor.mouseWheelEnabled = false;
        }
    });
}

 

  • Like 1
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...