Search code examples
javascriptajaxcomboboxextjs4.1onready

Add listener OnReady to extjs ComboBox


Is there anyway to execute a function just when a combobox is ready?

I'm having troubles with this because at the end of the Ext.OnReady it seems like sometimes the combo is not ready and calling a function to fill it's value with an ajax call it causes a lot of troubles.

I'm looking for a proper way for doing this instead of

setTimeout(function(){myDataFiller();},300);

Solution

  • It seems it was a rendering problem based on cpu.

    I made some test on Intel Core 2 Duo and I could reproduce the error. After that I tried on i7 cpu and everything was fine.