Feb 01, 2013, 5:53 PM
Field with suggestions
Hi,
I want to implement text field winth suggestions, something like this:
https://examples1.ext.net/#/Form/Com...Custom_Search/
but if I implement combobox with AJAX, it forces the selection from list and does not allow to set my own text. Text of combobox resets or sets to one of suggestions after I blur combobox. Next problem is, when I try to access combobox text from codebehind, it works only if it was chosen from suggestions.
How can I force combo from examples to work with set text, like it does textfield?
And the second question is, why store does not call ODS method with parameter in following code (even if "query" parameter is in extraparams of directevent) :
I want to implement text field winth suggestions, something like this:
https://examples1.ext.net/#/Form/Com...Custom_Search/
but if I implement combobox with AJAX, it forces the selection from list and does not allow to set my own text. Text of combobox resets or sets to one of suggestions after I blur combobox. Next problem is, when I try to access combobox text from codebehind, it works only if it was chosen from suggestions.
How can I force combo from examples to work with set text, like it does textfield?
And the second question is, why store does not call ODS method with parameter in following code (even if "query" parameter is in extraparams of directevent) :
<asp:ObjectDataSource ID="odsSubjects" runat="server"
TypeName="UsersAdapter"
SelectMethod="GetSubjectsSuggestions"
OnSelecting="odsSubjects_Selecting">
<SelectParameters>
<asp:Parameter Name="query" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<ext:Store
ID="storeSubjects"
runat="server"
AutoLoad="false"
DataSourceID="odsSubjects">
<Proxy>
<ext:PageProxy />
</Proxy>
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="Name" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:ComboBox
runat="server"
MinChars="3"
QueryDelay="500"
StoreID="storeSubjects"
ValueField="Name"
DisplayField="Name">
</ext:ComboBox>
Thanks for help!