Is it possible change the name of the rowediting's buttons (update and cancel) like in other versions of EXT JS??
Is it possible change the name of the rowediting's buttons (update and cancel) like in other versions of EXT JS??
u can override 'Ext.grid.RowEditor' s saveBtnText/cancelBtnText in locale file
@from: china
@web: http://atian25.iteye.com
@extensions: (extjs 4.x)
* Ext.ux.grid.plugin.RowEditing - add some usefull features (v1.4 updated 2011-09-11)
* Ext.ux.button.AutoRefresher
* Ext.ux.form.field.DateTime
Add this code and change the strings:
Code:if (Ext.grid.RowEditor) { Ext.apply(Ext.grid.RowEditor.prototype, { saveBtnText: 'Update', cancelBtnText: 'Cancel', errorsText: 'Errors', dirtyText: 'You need to commit or cancel your changes' }); }
I am creating a row editing plugin as follows:
but insertingCode:var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { id:'rowEditing', clicksToEdit: 2 });
to above doesn't help... How can I change it in the above code? I dont want to change the button text for everything. For Add event, I want the button to have "Add" and for Update, I want it to read "Update".Code:saveBtnText: 'Add',
For this, I can create two row editors and use them for Add and Update separately. but only if it works...
Regards,
Farish