My Goal:
I have a drop down of people’s name (First Last). The list could get rather large. I want to be able to type in the last name and get all names that contain what I type.
Example.
My List.
Jane Doe
Steve Smith
Phil Smith
Kate Smithy
Kathy Thomas
I start typing Smi
I want to see:
Steve Smith ßHe should be selected.
I should only be able to type/select items in the list. If I start typing Smyth. I should not be able to leave that as the selected item. If I do not find it in the list then selected value should go back my initial value.
My Problem:
I can get this to work when AutoFilterQueryType=”StartsWith”
When I set AutoFilterQueryType=”Contains” then I can somewhat get it to work. But I loose different features of what I am looking for.
This is my current setup for StartWith:
<ig:WebDropDown ID="personList" runat="server" Width="175px" EnableViewState="false" DisplayMode="DropDown"
EnableAnimations="true" AutoSelectOnMatch="true" EnableAutoCompleteFirstMatch="false"
EnableClosingDropDownOnSelect="true" EnableClosingDropDownOnBlur="true"
EnableCustomValueSelection="false" EnableCustomValues="false"
AutoFilterQueryType="StartsWith" EnableDropDownAsChild="true"/>
Does anyone know how to make this work with Contains?
Hello Abby ,
Thank you for posting in our forum.
Could you describe in more details what features you lose when the AutoFilterQueryType property is set to “Contains”?
The only difference should be that when the filter is set to “Contains” it will look for a match in the whole value of the DropDownItem.
The string you enter can be in the begging, middle or end of the value of the item and it will still be considered a match.
I’m looking forward to your reply.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://www.infragistics.com/support
This somewhat works for me. It does the filter on contains. But it doesn't do the auto complete. Its is KEY that I do not allow any values that are not in the drop down. How do I make that happen?
AutoSelectOnMatch="true" EnableAnimations="true" EnableAutoFiltering ="Client" DropDownAnimationDuration="0"
EnableAutoCompleteFirstMatch="true" EnableClosingDropDownOnBlur="true" EnableCachingOnClient="true"
EnableCustomValueSelection="false" EnableCustomValues="false" EnableDropDownAsChild="true"
AutoFilterQueryType="Contains">
</ig:WebDropDown>
Hello Abby,
Please let me know the NetAdvantage version you are using. If you have any questions, please let us know as well.
I am using 13.1.
And please do not tell me that i need to upgrade. That is not an option since that is out of my control.
Did you ever get this resolved? my contains does not seem to function properly but acting as though its "starts with"