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

Ctrl+A not work without selecting any item(s)

1 Answer 124 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Anatoliy
Top achievements
Rank 2
Anatoliy asked on 05 Sep 2016, 09:00 AM

Hello Telerik,

I'm using RadListBox with binding ItemsSource to CollectionViewSource and switched off IsSynchronizedWithCurrentItem...

And it's nessesary to give option select all within keyboard manipulation.

What can you suggest in this case?

 

With regards, Anatoliy

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 07 Sep 2016, 10:36 AM
Hello Anatoliy,

In order to select all the items in RadListBox using the keyboard you could use the following KeyBinding that executes the SelectAllCommand of the control:
<telerik:RadListBox x:Name="radlistbox"
                    ItemsSource="{Binding CollectionView.View}"
                    SelectionMode="Multiple"
                    IsSynchronizedWithCurrentItem="False"
                    DisplayMemberPath="Name">
    <telerik:RadListBox.InputBindings>
        <KeyBinding Modifiers="Control" Key="A" Command="{x:Static telerik:RadListBox.SelectAllCommand}"/>
    </telerik:RadListBox.InputBindings>
</telerik:RadListBox>

Hope this helps.

Regards,
Nasko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ListBox
Asked by
Anatoliy
Top achievements
Rank 2
Answers by
Nasko
Telerik team
Share this question
or