1. #1
    Sencha User
    Join Date
    Apr 2011
    Location
    Spain
    Posts
    77
    Vote Rating
    1
    Fanny144 is on a distinguished road

      0  

    Default 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??

  2. #2
    Sencha User atian25's Avatar
    Join Date
    Oct 2008
    Location
    china
    Posts
    114
    Vote Rating
    2
    atian25 is on a distinguished road

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Posts
    10
    Vote Rating
    0
    ZaDarkSide is on a distinguished road

      0  

    Default


    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'
    		});
    	}

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    I am creating a row editing plugin as follows:

    Code:
    var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
        id:'rowEditing',
        clicksToEdit: 2
    });
    but inserting
    Code:
    saveBtnText: 'Add',
    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".

    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

  1. confirm with ok - cancel buttons
    By michaelc in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 21 Mar 2013, 4:35 AM
  2. Browser dialogs and 'ok' 'cancel' buttons
    By CaptainKeebler in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 21 Sep 2010, 6:09 AM
  3. TreeEditor Save Cancel buttons
    By AspWhiz in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Dec 2007, 4:01 PM

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi