Wilton Ergon Posted August 23, 2019 Share Posted August 23, 2019 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 More sharing options...
Sherzod Posted August 23, 2019 Share Posted August 23, 2019 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 More sharing options...
Sherzod Posted August 23, 2019 Share Posted August 23, 2019 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; } }); } 1 Link to comment Share on other sites More sharing options...
Wilton Ergon Posted August 23, 2019 Author Share Posted August 23, 2019 6 hours ago, Sherzod said: Olá, Desculpe, você abriu uma solicitação? http://forums.unigui.com/index.php?/topic/12639-columns-numeric-in-dbgrid-change-value-with-down-arrow/&do=findComment&comment=67452 yes, but I never had an answer. I will try your approach. Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2019 Share Posted August 23, 2019 3 hours ago, wilton_rad said: I will try your approach. Did you check? Link to comment Share on other sites More sharing options...
Wilton Ergon Posted August 23, 2019 Author Share Posted August 23, 2019 it worked, it was great! Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2019 Share Posted August 23, 2019 4 minutes ago, wilton_rad said: it worked, it was great! Thanks for the feedback. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now