Completed
Last Updated: 24 Aug 2020 10:54 by ADMIN
Release LIB 2020.2.824
Dominik
Created on: 04 Aug 2020 18:56
Category: UI for WPF
Type: Feature Request
0
Autocomplete box scrolling more items (e.g. 5) with page up / down

It would be really great if the autocomplete box could handle the page up/down key to skip multiple entries at once. As we have like 200 entries in the list it would be a great advancement for the users using the keyboard.

Already tried your example from the forum but it is not functional.

All the best!

4 comments
Dominik
Posted on: 19 Aug 2020 12:31
Just perfect, thank you!
ADMIN
Dilyan Traykov
Posted on: 19 Aug 2020 10:47

Hello Dominik,

Actually, we decided to introduce a HighlightedIndex property which you can use to manually change the highlighted item upon button click. This would now work for both the Page Up and Page Down keys as well as the Home and End keys and also give users the ability to customize the number of items to be scrolled. Here's an example of how the new property can be used:

    public class CustomAutoCompleteBox : RadAutoCompleteBox
    {
        protected override bool HandleKeyDown(Key systemKey)
        {
            if (systemKey == Key.PageDown)
            {
                this.HighlightedIndex += 10;
                return true;
            }

            if (systemKey == Key.PageUp)
            {
                this.HighlightedIndex -= 10;
                return true;
            }

            return base.HandleKeyDown(systemKey);
        }
    }

Regards,
Dilyan Traykov
Progress Telerik

Dominik
Posted on: 18 Aug 2020 03:26
Great to hear that you accepted this! I thought about it and perhaps it does also makes sense to integrate home/end key navigation?
ADMIN
Dilyan Traykov
Posted on: 11 Aug 2020 14:29

Hello Dominik,

Thank you for your feedback.

Indeed, such a feature seems reasonable and I have thus added this item to our internal backlog so we can prioritize it and plan it in the future. Please follow the item to get notified about any changes in its status.

Regards,
Dilyan Traykov
Progress Telerik