carrera Posted July 4, 2017 Share Posted July 4, 2017 Hi,I need to perform default key action before focusing to the next unidbgrid column (change enter key to tab key)because sometimes data is not posted to databasefor now i use the code : function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns[i].editor = { selectOnFocus: true, xtype: 'numberfield' ,minValue: 0 ,allowBlank : false ,groupable : false }; .... if (columns[i].getEditor()) { columns[i].getEditor().on('specialkey', function (field, e) { if (e.getKey() == 13) { // perform default key action, force update current edit value // before focusing to the next column e.keyCode = e.TAB; return e.keyCode; ..... } EnvironmentWindows 10Delphi TokyoUnigui 1.0.0.1399Google Chrome 59.0.3071.115 Thank you Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2017 Share Posted July 4, 2017 Hi, because sometimes data is not posted to database This can happen if the value in the particular column is incorrect Link to comment Share on other sites More sharing options...
carrera Posted July 4, 2017 Author Share Posted July 4, 2017 Hi, Delphi Dev Hi, This can happen if the value in the particular column is incorrect if i comment the line e.keyCode = e.TAB; data is always posted, but the next column is not focus (tab is not simulate) Is it possible to update current value just like this thread ? http://forums.unigui.com/index.php?/topic/8511-update-grid-cell-clientside/?hl=complete&do=findComment&comment=43629 Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2017 Share Posted July 4, 2017 Hi, Can you make a simple testcase for this issue ?! Link to comment Share on other sites More sharing options...
carrera Posted July 4, 2017 Author Share Posted July 4, 2017 Hi, file attached. please look in unidbgrid1.OnAjaxEvent and uniDbgrid1.ClientEvent.ExtEvents thank you Unigui Demo.zip 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