While using the filter fix suggested in the documentation here , it causes an issue when tabbing into and then immediately out of a combobox.
If you tab into a combobox with the fix in place and then tab out without entering any other text, the tab out causes the suggested fix to fire sender.showDropDown(). At this point you've already moved to the next field, so I think what is happening is the dropdown gets shown then hid and in that process it then selects the first item in the list as the SelectedItem, but it doesn't change the actually item displayed in the combobox. So this results in a different item being reported as selected compared to what the user sees.
Changing the suggested fix to not fire for the tab key fixes the problem. Suggested fix should be:
<
telerik:RadComboBox
RenderMode
=
"Lightweight"
ID
=
"rco_1"
Filter
=
"Contains"
AllowCustomText
=
"false"
OnClientKeyPressing
=
"HandleComboBoxKeyPress"
runat
=
"server"
>
</
telerik:RadComboBox
>
<script type=
"text/javascript"
>
function
HandleComboBoxKeyPress(sender, e) {
if
(!sender.get_dropDownVisible()) {
if
(e.get_domEvent().keyCode != 9) {
// not tab out, show the dropdown to filter
sender.showDropDown();
}
}
}
</script>