Jul 18, 2017, 9:15 AM
[CLOSED] Avoid loading the data on expand of Combobox
Hi,
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.
Thank you
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">
<Proxy>
<ext:PageProxy>
<Reader>
<ext:JsonReader />
</Reader>
</ext:PageProxy>
</Proxy>
<Model>
<ext:Model ID="Model8" runat="server">
<Fields>
<ext:ModelField Name="ID">
</ext:ModelField>
<ext:ModelField Name="Description">
</ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
<ext:ComboBox ID="ComboBox1" Editable="false" runat="server" StoreID="Store1" ValueField="ID" TypeAhead="true" DisplayField="Description" ValueNotFoundText="Loading.." EmptyText="Select">
</ext:ComboBox>
<DirectMethod()>
Public Sub GetData(ByVal sender As Object, ByVal e As StoreReadDataEventArgs)
Dim listData as String() =
Store1.DataSource = listData
Store1.DataBind()
End Sub
Please help me on this issueThank you
Last edited by fabricio.murta; Jul 20, 2017 at 6:00 PM.