Results 1 to 4 of 4

Thread: Change text update cancel buttons grid

  1. #1
    Sencha User
    Join Date
    Sep 2017
    Posts
    20
    Answers
    3

    Default Answered: Change text update cancel buttons grid

    Just as the title says, is there any way to change the text (or languaje) of the update and cancel buttons while editing a grid?

    Thanks,

    Edit:

    I already changed the text inside RowEditor.js

    Code:
    saveBtnText: 'Update',
    to

    Code:
    saveBtnText: 'Example',
    but doesn't work

  2. Thank you for your answer, I made it work using the override method

    Code:
    Ext.define(null,{override:'Ext.grid.RowEditor',
        saveBtnText:'Salveaza',
        cancelBtnText:'Anuleaza'});
    Inside the launch function;

    Anyway thanks!

  3. #2
    Sencha User
    Join Date
    Jul 2017
    Posts
    64
    Answers
    6

    Default

    Take a look at this fiddle. Specifically at the listener towards the very end:
    Code:
    listeners: {
          'selectionchange': function(view, records) {
                grid.down('#removeEmployee').setDisabled(!records.length);
                grid.down('#removeEmployee').setText("Change Text!"); // This does it!
          }
    }

  4. #3
    Sencha User
    Join Date
    Sep 2017
    Posts
    20
    Answers
    3

    Default

    Thank you for your answer, I made it work using the override method

    Code:
    Ext.define(null,{override:'Ext.grid.RowEditor',
        saveBtnText:'Salveaza',
        cancelBtnText:'Anuleaza'});
    Inside the launch function;

    Anyway thanks!

  5. #4
    Sencha User
    Join Date
    Jul 2017
    Posts
    64
    Answers
    6

    Default

    Oh my bad, I thought you wanted the text to change after you started editing the grid.

Similar Threads

  1. Replies: 7
    Last Post: 26 Mar 2015, 3:57 PM
  2. Replies: 5
    Last Post: 15 Oct 2013, 8:06 AM
  3. Replies: 1
    Last Post: 22 Mar 2012, 6:16 AM
  4. [FIXED] RowEditor Update/Cancel buttons outside of grid viewport
    By winkelmann in forum Ext:Bugs
    Replies: 1
    Last Post: 1 Sep 2011, 12:46 PM
  5. Buttons update cancel rowediting
    By Fanny144 in forum Ext:User Extensions and Plugins
    Replies: 3
    Last Post: 8 Jul 2011, 1:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •