Remove Ctrl+A from GridView

2 posts, 0 answers
  1. Manoj
    Manoj avatar
    4 posts
    Member since:
    Feb 2012

    Posted 23 May Link to this post

    Hi,

    I want to remove Ctrl+A, which will select all record in GridView.

    I have requirement that User will be able to select multiple record/row by clicking on that. But user should not be able to Select All either from Header selction column check box or Ctrl+A.

     

    Please suggest how to do that ASAP.

     

    --

    Manoj S

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    368 posts

    Posted 25 May Link to this post

    Hello Manoj,

    The behavior you're trying to achieve can be simply achieved by the following lines of code:

    <telerik:RadGridView>
        <telerik:RadGridView.InputBindings>
            <KeyBinding Modifiers="Control" Key="A" Command="ApplicationCommands.NotACommand" />
        </telerik:RadGridView.InputBindings>
    </telerik:RadGridView>

    Would such an approach be applicable for your specific scenario?

    Regards,
    Dilyan Traykov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top