Jump to content

How to Translate RowEditor Buttons in DBGrid? [Solved]


Fábio Matte

Recommended Posts

Thank you very much, resolved:
Here's a mini tutorial to help anyone who comes in the future.

Tutorial:
1º ClientEvents > ExtEvents in DBGrid:
image.thumb.png.2ceaf686407576a2eba70bc4bf4207f9.png

Code:

function afterrender(sender, eOpts)
{
    var edPl=sender.editingPlugin;
    if (edPl && edPl.isRowEditor) {
        edPl.saveBtnText='Confirmar!';
        edPl.cancelBtnText='Cancelar!';
    };
}

 

2º Ext.grid.Panel > AfterRender:
image.png.c48cd5940483a348f35752c7f0ff0bdd.png

3º - Result:
image.png.40af67f8d3f05ce87f1db1a3a5cfb06a.png

Link to comment
Share on other sites

  • Fábio Matte changed the title to How to Translate RowEditor Buttons in DBGrid? [Solved]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...