PDA

View Full Version : Replacing storage in ComboBox



katovl
10 Aug 2007, 7:35 AM
I am a rather new Ext-User, so please excuse me if I maybe post stupid questions. The search function couldnt help me much.

My task is to design a online-blank for some medical issues. The blank is working so far, but now I have to add the functionality to switch the language for multi-lingual usability.

I expected that Ext could give me some help with changing FieldLabels, Grid-Header, Button-Names, but I had to write most of the dom manipulation stuff by myself. I had to do it the quick-and-dirty way, because I am not used to this prototype/extend way of programming yet.

I really hope this language/label-switching topic will be on the schedule for the next releases, because I really like all those Ext widgets.

Now here is my actual problem:
In the form I have some ComboBox, which values are in German by default. My function should switch its values to English, Polish, etc.... Is there any possibility to change the store of a ComboBox and reload it with an analogous array of another language? If I could I would have done it with dom manipulation, but I couldnt find any hint how do it.

fay
10 Aug 2007, 7:43 AM
Take a look at how loadData is used here to change the contents of a combobox: http://extjs.com/forum/showthread.php?p=32148#post32148

katovl
10 Aug 2007, 8:08 AM
Hey, thank a lot for this hint. There is no hint in the Documentation about this property or is it just common knowledge, that you can access config properties?