Jump to content

Change Update Cancel Captions in roweditor


emiboy

Recommended Posts

  • 3 weeks later...

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

Link to comment
Share on other sites

  • 2 years later...
  • 3 years later...
  • 2 months later...
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;

 

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
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? 

Link to comment
Share on other sites

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";

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...