Completed
Last Updated: 03 Jul 2019 13:21 by ADMIN
Release LIB 2019.2.708 (7/8/2019)
Martin Ivanov
Created on: 19 Jun 2019 13:12
Category: ListBox
Type: Bug Report
1
ListBox: The listbox item gets the focus from the child input control when the Space key is pressed
If you host a RadMaskedTextInput control in the listbox items and focus the input, then pressing Space will send the focus to the corresponding RadListBoxItem instead of adding an empty space character into the text input.

To work this around, create a custom RadListBox control and override its HandleKeyboardInput method.
public class CustomListBox : RadListBox
{
    protected override bool HandleKeyboardInput(Key key)
    {
        if (key == Key.Space)
        {
            return false;
        }
        return base.HandleKeyboardInput(key);
    }
}
0 comments