emiboy Posted June 9, 2015 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
mhmda Posted June 10, 2015 Posted June 10, 2015 [Client side] Use 'beforeedit' event and change the caption as you wish for example: MainForm.UniButton1.setText('xxxxxxx'); Quote
Sherzod Posted June 10, 2015 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
emiboy Posted June 10, 2015 Author Posted June 10, 2015 This last solution works !!!!!!!!!!!!!!! thank you !!!!!!!!!!!!!!!!!! Quote
valadi Posted June 26, 2015 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
pichon_22 Posted June 27, 2017 Posted June 27, 2017 It is in main form, or in the form is placed the grid? Quote
Sherzod Posted June 25, 2021 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
Yakup ULUTAŞ Posted June 29, 2021 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
gerhardhziegler Posted August 8, 2022 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
Sherzod Posted August 8, 2022 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
gerhardhziegler Posted August 8, 2022 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
Sherzod Posted August 8, 2022 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
gerhardhziegler Posted August 11, 2022 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
Sherzod Posted August 11, 2022 Posted August 11, 2022 1 hour ago, gerhardhziegler said: Didnt work neither. Strange, should have worked... Quote
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.