This is a migrated thread and some comments may be shown as answers.

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

1 Answer 200 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Nemo
Top achievements
Rank 1
Nemo asked on 12 Jul 2012, 08:30 PM
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.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 17 Jul 2012, 02:37 PM
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.

Tags
ListBox
Asked by
Nemo
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or