RadGridView Copy event

2 posts, 1 answers
  1. CSL
    CSL avatar
    4 posts
    Member since:
    Oct 2016

    Posted 15 Nov 2016 Link to this post

    Hi,

     

    I have a RadGridView ( ClipboardCopyMode="Cells,Header"  SelectionMode="Multiple" SelectionUnit="FullRow"). How can I raise the Copy and Paste Event which I would like to write into the Copy Button. I want the selected row and the header of the radGridView column to copy to clipboard without using Ctrl + C.

     

    Thank you

  2. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1171 posts

    Posted 18 Nov 2016 Link to this post

    Hello,

    In order to achieve the desired behavior, you can define the Command of your button to RadGridView's Copy command, similarly to the approach demonstrated in this article.

    <Button Name="CopyButton" Content="Copy" Command="telerik:RadGridViewCommands.Copy" CommandTarget="{Binding ElementName=gridView}"

    You can use the same approach for the Paste command and then handle RadGridView's copying & pasting events however you find applicable.

    Should you need any further assistance on the matter, please let me know.

    Regards,
    Dilyan Traykov
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
Back to Top