Hi Team,
I am using
EnableAutoFiltering="Client" EnableCustomValues="False" in the dropdown. When I type 2 letters and try to use backspace, it does not work and seem to be blocked.
I am using Infragistics Version=13.2.20132.2187.
Kindly give some resolution at the earliest.
Thanks,
Pushkar
Hello Priya,
Yes. This is the behavior across all versions. The only case when it is allowed to edit the input (using backspace as well) when using EnableCustomValues="False" is in case the input after the editing is existing in the WDD Items OR in case you clear/delete all input. For example if you have the following items:
<ig:DropDownItem Selected="False" Text="1" Value="1"></ig:DropDownItem>
<ig:DropDownItem Selected="False" Text="12" Value="12"></ig:DropDownItem>
<ig:DropDownItem Selected="False" Text="123" Value="123"> </ig:DropDownItem>
<ig:DropDownItem Selected="False" Text="1234" Value="1234"> </ig:DropDownItem>
<ig:DropDownItem Selected="False" Text="12345" Value="12345"> </ig:DropDownItem>
<ig:DropDownItem Selected="False" Text="123456" Value="123456"> </ig:DropDownItem>
In case you input 123 and click Backspace once, 12 will be displayed. In case you click Backspace again 1 will be displayed. In this case the editing is allowed, as the new value (12 OR 1) is actually existing in the WDD Items collection.
I hope this illustrates the expected behavior clear enough. Please let me know if you have farther questions or in case you happen to experience different than the expected behavior.
Is it not possible to have the backspace working along with EnableCustomValues="False" , even in the latest release?
As you are using EnableCustomValues="False", the input field for the WebDropDown will not allow any editing. This is the reason why it is not possible to edit/add/delete – as the input could only march one of the existing in the WDD items values. This is by design and the expected functionality.
However, in order to make this more user friendly, I suggest adding the EnableAutoCompleteFirstMatch="true" property. Using it will ensure the input will be matched to the first available and it will ease the user selecting/inputting correct value. Please notice it is always possible to delete the current value like using some of the following approaches:
1 – Select all of the current input using the mouse and delete using delete btn or cut 2 – press ctr+a to select all input, while the focus is in the WDD input field and press delete or ctr+x (cut)
I am attaching a runnable code sample illustrating the suggested approach. Please let me know if you require further details.
Gentle reminder!!