Mar 16, 2011, 12:23 AM
[CLOSED] [1.0] ComboBox and Store
Hello,
I'm having a complication with a bit of code that was working previously -- not sure exactly when it started to fail but perhaps one of you know?
Was using the below ComboBox as a typeahead and even when I type in 5 characters it isn't making a call in the background according to FireBug:
Cheers,
Timothy
I'm having a complication with a bit of code that was working previously -- not sure exactly when it started to fail but perhaps one of you know?
Was using the below ComboBox as a typeahead and even when I type in 5 characters it isn't making a call in the background according to FireBug:
<ext:ComboBox runat="server"
DisplayField="CompanyName"
EmptyText="Search for Company ..."
EnableKeyEvents="true"
ForceSelection="true"
LoadingText="Searching ..."
MinChars="2"
QueryDelay="1000"
QueryParam="Keywords"
TypeAhead="true"
ValueField="Id"
Width="255">
<Store>
<ext:Store ID="Store1" runat="server"
AutoLoad="false">
<BaseParams>
<ext:Parameter Name="limit" Value="5" Mode="Raw" />
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="dir" Value="ASC" />
<ext:Parameter Name="sort" Value="CompanyName" />
</BaseParams>
<Proxy>
<ext:HttpProxy AutoDataBind="true" Method="GET" Url='<%# Url.Action("Search", "Vendor", new { Area = "Management" } ) %>' />
</Proxy>
<Reader>
<ext:JsonReader IDProperty="Id" Root="data">
<Fields>
<ext:RecordField Name="Id" />
<ext:RecordField Name="CompanyName" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
</ext:ComboBox>
Suggestions?Cheers,
Timothy
Last edited by Daniil; Mar 21, 2011 at 7:20 PM.
Reason: [CLOSED]