So I have a number of WebDropDowns that have auto filtering turned on. Basically, we want the user to be able to type into the WebDropDown text box and auto-select an available drop down selection (in addition to using the drop down itself). We want to limit them to only selecting what is available in the drop down (no custom selections).
The problem is, if they start typing something and then find they are selecting the wrong item, they can't backspace to correct it - they have to select the WHOLE text field and start all over again.
For instance, say we have the following drop down:
<ig:WebDropDown ID="ddlTest" runat="server" DropDownContainerHeight="100px" DropDownOrientation="Default" EnableAnimations="False" EmptyFilterBehavior="LimitToAutoFilterResultSize" EnableAutoFiltering="Client" EnableCustomValues="False" EnableCustomValueSelection="False" NullText="None Selected" PageSize="10" Width="250px"> <ClientEvents Focus="WebDropDown_Focus_SelectAll" /> </ig:WebDropDown>
In that drop down we have three items loaded: 100 - Test One, 200 - Test 2, and 300 - Test 3. So now they click into the text field, and begin by typing a 3 - it autoselects the 300 option. However, let's say that as soon as they hit 3 they realized it was a mistake, and they really meant to hit 2. At this point, you can't backspace to erase the 2 so that you can re-enter a 3. One ends up having to reselect the entire text field in the drop down, then press backspace, and finally retype the 2 to begin autoselecting items that start with 2.
Isn't there any way to allow the backspace to be used in the text box to remove the last entered character? In my case, you are only allowed to enter a matching character, so one could not enter anything invalid anyway.
I added the ClientEvent for FOCUS just so that it will auto-select the entire text field when that field gets focus, so that it makes it easier to start all over. But it seems there should be a way for one to 'correct' an incorrectly typed value.
Ideas?
-Tom
Hello Tom,
Thank you for contacting Infragistics!
We received your support request concerning having to clear the whole input box of the dropdown with auto filtering, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and I am looking into this matter and will get back to you by the end of the day Friday with more information or questions for you.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thank you for your patience. I have done some further looking into this matter and you can get the behavior you want by setting EnableAutoCompleteFirstMatch to false. I am attaching a sample demonstrating this behavior.
Please let me know if you have any questions concerning this matter.
I am following up to see if the information and sample provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.
Mike,
I loaded the demo exactly as you sent it to me into Visual Studio 2010; same result as before, I cannot us a backspace when I am typing within the textbox portion of the drop down box.
So no, it still doesn't work. The only way I could get something similar was to set the auto select to select everything in the box - then when the user leaves the drop down and then re-enters it, everything is selected so they can delete everything and start over.
But that really is just a workaround. I need to be able to type into the textbox and then be able to use the backspace to correct 'mistakes'.
-Tom S
Thank you for your update. I have done some further looking into this matter and discussing this with the development team I have the following information. With EnableCustomValues set to false this is the expected behavior. If you want to be able to backspace without selecting the whole text I recommend you set this to true. With EnableCustomValueSelection set to false you will still be able to prevent the selecting of custom values in the dropdown.