emiboy Posted June 9, 2015 Share Posted June 9, 2015 Hello. Is possible change the button captions (Update and Cancel) when i use roweditor in unidbgrids ? I need it in Spanish. Thanks ! Quote Link to comment Share on other sites More sharing options...
mhmda Posted June 10, 2015 Share Posted June 10, 2015 [Client side] Use 'beforeedit' event and change the caption as you wish for example: MainForm.UniButton1.setText('xxxxxxx'); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 10, 2015 Share Posted June 10, 2015 Hi, One of the solutions, try: MainForm.Scripts ... add: Ext.grid.RowEditor.prototype.cancelBtnText = "This is cancel"; Ext.grid.RowEditor.prototype.saveBtnText = "This is update"; Best regards. Quote Link to comment Share on other sites More sharing options...
emiboy Posted June 10, 2015 Author Share Posted June 10, 2015 This last solution works !!!!!!!!!!!!!!! thank you !!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
valadi Posted June 26, 2015 Share Posted June 26, 2015 Hi, One of the solutions, try: MainForm.Scripts ... add: Ext.grid.RowEditor.prototype.cancelBtnText = "This is cancel"; Ext.grid.RowEditor.prototype.saveBtnText = "This is update"; Best regards. where MainForm Scripts add ? plz Guide Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 26, 2015 Share Posted June 26, 2015 where MainForm Scripts add ? Quote Link to comment Share on other sites More sharing options...
valadi Posted June 26, 2015 Share Posted June 26, 2015 thanks Quote Link to comment Share on other sites More sharing options...
pichon_22 Posted June 27, 2017 Share Posted June 27, 2017 It is in main form, or in the form is placed the grid? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted June 29, 2017 Share Posted June 29, 2017 In the mainform Quote Link to comment Share on other sites More sharing options...
yakup Posted April 14, 2021 Share Posted April 14, 2021 I tried it too but it didn't change Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 25, 2021 Share Posted June 25, 2021 On 4/14/2021 at 4:01 PM, yakup said: I tried it too but it didn't change Hello, Try this approach: procedure TfrmMain.UniFormCreate(Sender: TObject); begin with UniDBGrid1, UniDBGrid1.JSInterface do if RowEditor then JSConfigPlugin('Ext.grid.plugin.RowEditing', ['saveBtnText', 'Save!', 'cancelBtnText', 'Cancel!']) end; 1 Quote Link to comment Share on other sites More sharing options...
yakup Posted June 29, 2021 Share Posted June 29, 2021 On 6/25/2021 at 8:15 PM, Sherzod said: Hello, Try this approach: procedure TfrmMain.UniFormCreate(Sender: TObject); begin with UniDBGrid1, UniDBGrid1.JSInterface do if RowEditor then JSConfigPlugin('Ext.grid.plugin.RowEditing', ['saveBtnText', 'Save!', 'cancelBtnText', 'Cancel!']) end; worked, thanks. 1 Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted August 8, 2022 Share Posted August 8, 2022 On 6/29/2021 at 8:08 AM, yakup said: worked, thanks. worked not with me, after I applied this, all fields from the Row Edit disappeared. And yes, it showed the fields before the patch Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 8, 2022 Share Posted August 8, 2022 13 minutes ago, gerhardhziegler said: worked not with me, after I applied this, all fields from the Row Edit disappeared. And yes, it showed the fields before the patch Hello, Which build of uniGUI are you using? Can you make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted August 8, 2022 Share Posted August 8, 2022 1.50.0.1480 at the moment. Testcase maybe later, I thought, you have an idea. I will try to solve it another way, the project is large and extracting that grid will cost more time. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 8, 2022 Share Posted August 8, 2022 28 minutes ago, gerhardhziegler said: 1.50.0.1480 at the moment. Why don't you upgrade to the latest version? Also try this solution for your version you are using: On 6/10/2015 at 3:04 PM, Sherzod said: MainForm.Scripts ... add: Ext.grid.RowEditor.prototype.cancelBtnText = "This is cancel"; Ext.grid.RowEditor.prototype.saveBtnText = "This is update"; Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted August 11, 2022 Share Posted August 11, 2022 On 8/8/2022 at 7:21 PM, Sherzod said: Why don't you upgrade to the latest version? Also try this solution for your version you are using: Didnt work neither. Is it possible to set it in one of the Ext. Events of the grid itself? And: promise to update asap, but most likely in september Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 11, 2022 Share Posted August 11, 2022 1 hour ago, gerhardhziegler said: Didnt work neither. Strange, should have worked... 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.