Threaded View

  1. #1
    Sencha User hoanghuu's Avatar
    Join Date
    Oct 2011
    Location
    Viet Nam
    Posts
    13
    Answers
    1
    Vote Rating
    0
    hoanghuu is on a distinguished road

      0  

    Default Answered: How to change text for grid header context menu?

    Answered: How to change text for grid header context menu?


    hi there,

    I used Ext JS 4.0.2a and i have a question, how can i change text of grid header context menu? (ex: sortAscText, sortDescText, columnsText, ...)

    I tried override them as code below, but it not work.
    Code:
    Ext.onReady(function(){
    Ext.override(Ext.grid.column.Column, { sortAscText: 'Sắp xếp tăng', sortDescText: 'Sắp xếp giảm', columnsText: 'Hiển thị cột' });
    });

  2. If you're trying to localise the extjs application you should include the extjs/locale/ext-lang-vn.js file or your own version of it to get it in Vietnamese.

Thread Participants: 2