Oct 09, 2012, 11:35 AM
[CLOSED] Combobox with autoload migration from 1.0 to 2.0
Hello,
I have a 1.0 implementation of a ComboBox that uses an autoload-store
store:
Well, this combobox does not get filled, and if I try to open the combobox the browser debugger tells me
I have a 1.0 implementation of a ComboBox that uses an autoload-store
store:
<ext:Store ID="ReportNameStore" runat="server" AutoLoad="true">
<Proxy>
<ext:PageProxy />
</Proxy>
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Name" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
Combobox: <ext:ComboBox ID="ReportName" runat="server" Editable="true" TypeAhead="true" QueryMode="Local"
StoreID="ReportNameStore" TriggerAction="All" SelectOnFocus="true" DisplayField="Name"
AllowBlank="true" ValueField="Name" EmptyText="Bericht" AnchorHorizontal="100%"
FieldLabel="Bericht">
<Triggers>
<ext:FieldTrigger Icon="Clear" HideTrigger="true" />
</Triggers>
<Listeners>
<Select Handler="this.getTrigger[0].show();" />
<BeforeQuery Handler="this.getTrigger[0][ this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
<TriggerClick Handler="if (index == 0) { this.clearValue(); this.getTrigger[0].hide(); }" />
</Listeners>
Serverside signature:
Protected Sub ReportNameStore_RefreshData(ByVal sender As Object, ByVal e As Ext.Net.StoreReadDataEventArgs) Handles ReportNameStore.ReadData
* Query * ....
Dim store As Store = sender
store.DataSource = queryResult
store.DataBind()
End Sub
Well, this combobox does not get filled, and if I try to open the combobox the browser debugger tells me
Uncaught TypeError: Cannot call method 'hide' of undefined
Last edited by Daniil; Oct 09, 2012 at 3:27 PM.
Reason: [CLOSED]