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]

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...