-
9 Sep 2011 3:24 AM #1
Answered: How to apply Locale in RowEditing's buttons ('Update' & 'Cancel')
Answered: How to apply Locale in RowEditing's buttons ('Update' & 'Cancel')
Hi,
I'm using the locale file correctly (I think) but how can I apply the locale options in those dinamic buttons shown when editing inside grids using rowEditing plugin?
extjs_problem.PNG
Thanks in advance!
-
Best Answer Posted by skirtle
Seems to be missing from the locale files. User-facing strings like these are usually placed on the prototype of the relevant class so that they can be easily modified. I haven't tested it but from a quick look at the source code I think something like this will probably work:
Code:Ext.apply(Ext.grid.RowEditor.prototype, { saveBtnText : 'abc', cancelBtnText: 'abc', errorsText: 'abc', dirtyText: 'abc' });
-
11 Sep 2011 8:25 AM #2
Seems to be missing from the locale files. User-facing strings like these are usually placed on the prototype of the relevant class so that they can be easily modified. I haven't tested it but from a quick look at the source code I think something like this will probably work:
Code:Ext.apply(Ext.grid.RowEditor.prototype, { saveBtnText : 'abc', cancelBtnText: 'abc', errorsText: 'abc', dirtyText: 'abc' });
-
20 Nov 2012 6:04 PM #3
Thank you!!! It worked perfectly!!
Sorry taking so long to answer... I've been away for a long time..


Reply With Quote