-
4 May 2011 6:14 AM #1
Buttons update cancel rowediting
Buttons update cancel rowediting
Is it possible change the name of the rowediting's buttons (update and cancel) like in other versions of EXT JS??
-
4 May 2011 10:54 PM #2
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
-
24 May 2011 6:08 AM #3
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' }); }
-
8 Jul 2011 1:19 AM #4
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
Similar Threads
-
confirm with ok - cancel buttons
By michaelc in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 21 Mar 2013, 4:35 AM -
Browser dialogs and 'ok' 'cancel' buttons
By CaptainKeebler in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 21 Sep 2010, 6:09 AM -
TreeEditor Save Cancel buttons
By AspWhiz in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 16 Dec 2007, 4:01 PM


Reply With Quote