PDA

View Full Version : How to change text for grid header context menu?



hoanghuu
11 Oct 2011, 7:39 PM
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.:-?


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

skirtle
12 Oct 2011, 12:31 AM
Try doing the override on Ext.grid.header.Container instead.

Asken
12 Oct 2011, 1:31 AM
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.

hoanghuu
12 Oct 2011, 9:32 PM
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.

It work fine. Thanks.