PDA

View Full Version : OnDemand loading in ComboBox



venki5star
14 Oct 2009, 3:07 AM
Hi All,
I am new to ExtJS. I am trying to load a combobox on drop. (i.e) It should the combobox when we click the down arrow. Is that possible? If yes, can you give a sample or reference?

Thanks

14 Oct 2009, 3:39 AM
Set the combo box's store to 'autoLoad : false' and then the combo to mode : 'remote'

venki5star
14 Oct 2009, 8:32 PM
I understand what you are saying. But I need to load the store from a webservice/ajax call. Do I need to set proxy also? What is the data format that has to be returned from the webservice? I am using ArrayStore.

15 Oct 2009, 1:40 AM
ArrayStore examples have been demonstrated in the examples. you *technically* don't need to create a proxy, the ArrayStore will do that for you.

tuxrupre
15 Oct 2009, 3:31 AM
Thanks so much for sharing the post.