View Full Version : Disable combobox loading
5 Jul 2012, 2:27 AM
How i can disable the data loading when i first time expand a combobox?
5 Jul 2012, 2:33 AM
if you are loading data from an array or something locally, use
in the config of the combobox.
5 Jul 2012, 2:57 AM
I am loading data from a store. But i already have the data, while rendering a form.
Because of this, extjs sent 2 requests to the server.
1. onRender form
2. expanding combobox
5 Jul 2012, 3:04 AM
If you want to load the data each time you open the dropdown list of the combobox, then dont change queryMode to local rather change the autoLoad of the store to false so that its not loaded automatically and the first load only happens when you open the combo box.
5 Jul 2012, 3:39 AM
I do not want load the data when i open the dropdown list of the combobox for the first time.
autoLoad config option of the store is true
sorry for my English :)
5 Jul 2012, 3:52 AM
its not clear to me what you want to do. you want that when the form is loaded, the store is loaded automatically (autoLoad: true) and then when you open the combobox, it should not load? what about when you open the combobox afterwards (2nd or 3rd time)? do you want the store to load data or the data is to stay the same? if it is going to stay the same, then queryMode: 'local' will fix your problem.
5 Jul 2012, 3:55 AM
Thank you! :)
Powered by vBulletin® Version 4.1.5 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.