Apr 14, 2016, 7:30 AM
Set a Text value into AutoComplete Combo box problem when upgrade from v2.5 to 4.0.0
Hello everyone,
I make an auto-complete comboBox and bind data into its store via .ashx ajax proxy.
now the combobox works fine but when I set a text value into it , this will return an empty text.
this code was worked in ext.net v2.5,but after upgrade to 4.0.0 the empty text happened.
to return data via ashx..
now i want to set a text into comboBox manually, i tried these two lines, it keeps returning an empty combo
I make an auto-complete comboBox and bind data into its store via .ashx ajax proxy.
now the combobox works fine but when I set a text value into it , this will return an empty text.
this code was worked in ext.net v2.5,but after upgrade to 4.0.0 the empty text happened.
to return data via ashx..
<ext:ComboBox ID="CobMemberSearch" runat="server"
DisplayField="Name"
ValueField="BarCode"
TypeAhead="false"
HideTrigger="true"
MinChars="0"
TriggerAction="Query" Width="350" LabelWidth="100" FieldLabel="Member Name" Icon="UserMagnify" >
<ListConfig LoadingText="searching ...">
</ListConfig>
<Store>
<ext:Store ID="Store3" runat="server" AutoLoad="false">
<Proxy>
<ext:AjaxProxy Url="~/Search/Search.ashx">
<ActionMethods Read="POST" />
<Reader>
<ext:JsonReader RootProperty="root" />
</Reader>
</ext:AjaxProxy>
</Proxy>
<Parameters>
<ext:StoreParameter Name="ID" Value="#{txtId}.getValue()" Mode="Raw" />
</Parameters>
<Model>
<ext:Model ID="Model26" runat="server" IDProperty="BarCode">
<Fields>
<ext:ModelField Name="memBarCode" Mapping="BarCode" />
<ext:ModelField Name="memName" Mapping="Name" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<DirectEvents>
<Select OnEvent="SearchMember" />
</DirectEvents>
</ext:ComboBox>
the above code works fine and return datanow i want to set a text into comboBox manually, i tried these two lines, it keeps returning an empty combo
CobMemberSearch.Select("Derp");
CobMemberSearch.Text = "Herp";