How to Enable copy functionality

2 posts, 0 answers
  1. Prabakaran
    Prabakaran avatar
    14 posts
    Member since:
    Feb 2015

    Posted 23 Mar Link to this post

    Dear Team,

    we need to enable copy functionality for our WPF application especially for radgridview. How could i enable this? As per my understanding To enable cell copy i've to do like ClipboardCopyMode="Cell" and SelectionUnit="Cell". If i apply this then row selection is not working because i am using row SelectionChanged event in order to do some operation.

    <telerik:RadGridView x:Name="gvDefaultDashboard"
                                         AutoGenerateColumns="False"
                                         CanUserResizeColumns="True"
                                         Padding="1,0,0,0"
                                         SelectionMode="Single"
                                         EnableColumnVirtualization="False"
                                         ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DataContext.GetPagedInfo,Mode=TwoWay}"
                                         SelectionChanged="gvDefaultDashboard_SelectionChanged"
                                         Filtering="gvDefaultDashboard_Filtering"
                                         FilterOperatorsLoading="OnRadGridViewFilterOperatorsLoading"
                                         AutoExpandGroups="True"
                                         Sorting="gvDefaultDashboard_Sorting"
                                         Grouping="gvDefaultDashboard_Grouping"
                                         telerik:PersistenceManager.StorageId="{Binding DashBoardPersistenceID,Mode=TwoWay}" ClipboardCopyMode="Cells" SelectionUnit="Cell">
    </telerik:RadGridView>
    .

    I want to enable cell copy without affection the row selectionchanged event how could i achieve this. Please advice.

    Thank you.

  2. Stefan X1
    Admin
    Stefan X1 avatar
    523 posts

    Posted 25 Mar Link to this post

    Hello Prabakaran,

    In such scenario, you can use the CurrentCellChanged event that RadGridView provides. You can take a look at the events Overview topic for further reference.

    Can you please give it a try and let me know whether it corresponds to your needs?

    Regards,
    Stefan X1
    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