FFREDIANELLI Posted June 21, 2018 Share Posted June 21, 2018 Hi, exist some event similar to the 'oncolexit' of vcl dbgrid ? i use it to fill the next column depending on the value of actual. Thanks in advance for some help ! Quote Link to comment Share on other sites More sharing options...
Wilton Ergon Posted June 21, 2018 Share Posted June 21, 2018 try onvalidate in fields query Quote Link to comment Share on other sites More sharing options...
mhmda Posted June 21, 2018 Share Posted June 21, 2018 https://docs.sencha.com/extjs/6.2.0/classic/Ext.grid.plugin.CellEditing.html Quote Link to comment Share on other sites More sharing options...
david_navigator Posted June 21, 2018 Share Posted June 21, 2018 How do you use the edit event shown above ? There doesn't seem to be cellModel.edit event listed under ExtEvents Quote Link to comment Share on other sites More sharing options...
FFREDIANELLI Posted June 21, 2018 Author Share Posted June 21, 2018 yes... how to use ?.... im a vcl programmer .... may be a little example ? Quote Link to comment Share on other sites More sharing options...
Beginner Posted June 22, 2018 Share Posted June 22, 2018 You can use hidden panel and uniedit after uniedit- event onchange etc Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2018 Share Posted June 22, 2018 Hi, yes... how to use ?.... im a vcl programmer .... may be a little example ? Maybe this post can help you ?!: http://forums.unigui.com/index.php?/topic/10508-update-dataset-events-in-unidbgrid/ Quote Link to comment Share on other sites More sharing options...
david_navigator Posted June 22, 2018 Share Posted June 22, 2018 This doesn't work for me as I need to know what the user typed in the cell/edit box (UniEdit1.text - the attached control - never updates its text property) and as the attached field is a calculated one, then the field doesn't reflect what the user typed either, so for me the edit event mentioned by mohammad would be ideal. Tried something like this in the UniDBGrid ExtEvents function validateedit(editor, context, eOpts) { alert(editor.value); } but that just returned "undefined" Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2018 Share Posted June 22, 2018 Hi, Try these properties: context.originalValue, context.value, context.rowIdx, context.colIdx, context.field Quote Link to comment Share on other sites More sharing options...
david_navigator Posted June 22, 2018 Share Posted June 22, 2018 Marvelous. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.