[CLOSED] Avoid loading the data on expand of Combobox

  1. #1

    [CLOSED] Avoid loading the data on expand of Combobox


    I have a Combobox which loads the data by using store OnReadData event, also AutoLoad = True for that same store. Now the issue is, it is loading data after the PageLoad and on expand of the combobox.

    My question is how to avoid this extra call which is loading on expand of combobox.

    Also I have tried, AutoLoad = False for the store. This time, it is only loading on expand, not loading after the pageload. I want the reverse case.

    Sample code as follows.

    <ext:Store runat="server" ID="Store1" OnReadData="GetData">
                    <ext:JsonReader /> 
            <ext:Model ID="Model8" runat="server">
                    <ext:ModelField Name="ID">
                    <ext:ModelField Name="Description">
    <ext:ComboBox ID="ComboBox1" Editable="false" runat="server" StoreID="Store1" ValueField="ID" TypeAhead="true"    DisplayField="Description" ValueNotFoundText="Loading.." EmptyText="Select">
        Public Sub GetData(ByVal sender As Object, ByVal e As StoreReadDataEventArgs)
            Dim listData as String() = 
            Store1.DataSource = listData
        End Sub
    Please help me on this issue

    Thank you
    Last edited by fabricio.murta; Jul 20, 2017 at 6:00 PM.
  2. #2
    Hello @iansriley!

    Use QueryMode="Local" on your combo box, as the store -- although remotely queried -- is handled on load and you don't want the combo box messing around with it.

    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3

    Thank you for the solution. Now you can close this Thread.
  4. #4
    Hello @iansrilley!

    Glad it helped, thanks for the feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 1
    Last Post: Sep 28, 2014, 7:36 AM
  2. Replies: 6
    Last Post: Feb 21, 2014, 4:16 AM
  3. [CLOSED] Loading data from database to a combobox in Ext.Net
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Aug 29, 2013, 6:47 AM
  4. [CLOSED] MVC DirectEvent/Method ComboBox - Loading Data
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 28, 2012, 3:11 AM
  5. [CLOSED] Combobox not loading data
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 22, 2009, 6:45 AM

Posting Permissions