Disable SelectionChanged on Up and Down Key in RadListBox using MVVM.

2 posts, 0 answers
  1. Nemo
    Nemo avatar
    12 posts
    Member since:
    Jul 2012

    Posted 12 Jul 2012 Link to this post

    Hi,

    I am using RadListBox (Binded to ObservableCollection<string>) and when I navigate through the RadListbox using up and down keys, selectedItem changes automatically. How can I disable this behaviour? I only want to change SelectedItem only by pressing Enter Key or by Mouse's LeftClick in MVVM.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 17 Jul 2012 Link to this post

    Hello Pratihbha,

    Currently this behavior is hardcoded in the RadListBox control, but we will do our best to change it for the upcoming SP. You could set the RadListBox.CanKeyboardNavigationSelectItems property to False. In this way the keyboard navigation will change move the focus, but not the selection. You could track the pits item here - http://www.telerik.com/support/pits.aspx#/public/wpf/11904 

    Hope this helps.

    Regards,
    George
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top