Hi,
I'm trying to build a dropdown, where the client has the possibility to select a country from a predefined list.
Hereby the user needs to be able to type letters (and thus minifying the list) and have the possibility to autocomplete, or to choose the item
if the user leaves the combobox, with NO existing value, the field should be cleared.
even better would be, if the user would not be able to type in a non-existant value
example:
* http://ko.infragistics.com/products/aspnet/sample/drop-down/data-binding
* Type 'carl' -> wanted result: ONLY showing the 2 records
* Type'i' -> no more results visible
* leave combo -> combobox goes empty again
How can this be achieved?
Ruben.
(Infragistics v12.1, VB.Net + JS)
Hello,
You might be able to achieve this by setting the following properties EnableCustomValueSelection="False" EnableCustomValues="False".
Another approach would be to use the 'ValueChanging' event and implement some custom logic, it is just that I am not sure how efficient this would really be.
Please feel free to let me know if a question about our tool set comes up on your mind.
I was able to get "good enough" for my purposes with the following. It doesn't limit the list on typing, but it does jump to the first matching item in the list, and it does seem to prevent entry of items not in the list (with the possible exception of the initial blank). Note that I wasn't using a WebDropDown per se, but a DropDownProvider in a WebDataGrid... but the principal should be the same.
The key seems to be: DisplayMode="DropDown" EnableAutoCompleteFirstMatch="True" EnableCustomValueSelection="False" EnableCustomValues="False"
My example:
<ig:DropDownProvider ID="FlowType_DropDownProvider">
<EditorControl ID="FlowType_DropDown" runat="server" ClientIDMode="Predictable" DropDownContainerHeight=""
EnableAnimations="False" EnableDropDownAsChild="False" TextField="abbrev" ValueField="flow_type_id"
DataSourceID="QD_Flow_FlowType_DataSource" DataKeyFields="flow_type_id" DisplayMode="DropDown"
EnableAutoCompleteFirstMatch="True" EnableCustomValueSelection="False" EnableCustomValues="False">
<ClientEvents Focus="FlowType_Dropdown_OnFocus" />
<DropDownItemBinding TextField="abbrev" ValueField="flow_type_id"></DropDownItemBinding>
</EditorControl>
</ig:DropDownProvider>
Seems we're both locked.. havent found an answer still
I am looking for this exact same behavior. I would even settle for a fixed dropdownlist which jumps to the first option (if any) starting with the letter typed. I am currently using v2011.1 but we are planning to switch to v2013.1 as soon as we've converted all of the retired "Ultra" controls on our site.
Please help!
People please..
I'm trying to find a way to block my users from entering own values, BUT allowing them to type in the webdropdown.
This shouldnt actually BE a hasstle..
If anyone can help me out?
Atm, it filters correctly, but I need to clear the combo if the user
a) types an unknown value directly
b) OR when he leaves the field
this is the combo
<ig:WebDropDown ID="cmbCountry" Width="196px" EnableAutoFiltering="Client" EnableAutoCompleteFirstMatch="true" DropDownContainerWidth="190px" DisplayMode="DropDown" DropDownContainerHeight="150px" runat="server" meta:resourcekey="cmbCountry" DropDownOrientation="TopLeft" />
I've already tried all the clientevents I could think of with no avail.