This question is locked. New answers and comments are not allowed.
Hi, I'm relatively new to using Telerik controls.
I've built a listbox containing usernames. I want to navigate the listbox using the letters on the keyboard as well as the currently supported directional keys.
I've implemented a onkeypress listener to execute the following
It scrolls and selects the RadListBoxItem I want, but if I hit the up or down key, it moves to the next/prev index of the prev RadListBoxItem and not the current one.
Example:
I have a listbox consisting of Adam, Adrian, James, John
Original selection is Adam.
If I hit J, it scrolls to James which is expected.
If I hit down, it highlights Adrian and not John, which is incorrect.
If you can point me in the right direction that would be very helpful. Thanks.
I've built a listbox containing usernames. I want to navigate the listbox using the letters on the keyboard as well as the currently supported directional keys.
I've implemented a onkeypress listener to execute the following
RadListBoxItem docQueue = this.lstDocQueue.FindItem(letter.ToString()); |
this.lstDocQueue.SelectedItem = docQueue.Text; |
RadListBoxElement element = (RadListBoxElement)this.lstDocQueue.RootElement.Children[0]; |
element.ScrollElementIntoView(docQueue); |
It scrolls and selects the RadListBoxItem I want, but if I hit the up or down key, it moves to the next/prev index of the prev RadListBoxItem and not the current one.
Example:
I have a listbox consisting of Adam, Adrian, James, John
Original selection is Adam.
If I hit J, it scrolls to James which is expected.
If I hit down, it highlights Adrian and not John, which is incorrect.
If you can point me in the right direction that would be very helpful. Thanks.