select all and copy

4 posts, 0 answers
  1. Alex
    Alex avatar
    36 posts
    Member since:
    Sep 2010

    Posted 16 Apr 2012 Link to this post

    Hi,

    I am trying to select and copy all the grid rows, but it does not work. I only get one row copied. Any idea how to solve this? See my code below
    GridViewSessions.ItemsSource = _itemsSource;
     
                                if (e.Entities.Count() > 25)
                                {
                                    GridViewSessions.SelectionMode = System.Windows.Controls.SelectionMode.Multiple;
                                    GridViewSessions.SelectAll();
     
                                    var copyCommand = RadGridViewCommands.Copy as RoutedUICommand;
                                    copyCommand.Execute(null, GridViewSessions);
                                }
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 17 Apr 2012 Link to this post

    Hi Alex,

    Could you try setting ClipboardCopyMode property of the grid ? Do you still get the same behavior ?  

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Alex
    Alex avatar
    36 posts
    Member since:
    Sep 2010

    Posted 17 Apr 2012 Link to this post

    I do set ClipboardCopyMode to All. it selects all the rows, but does not copy them to clipboard :(
  4. rahul
    rahul avatar
    25 posts
    Member since:
    Jan 2011

    Posted 30 May 2012 Link to this post

    are you able to resolve this???
    I', facing similary issue. Will be great help if you can share solution.

    Thanks,
    Rahul
Back to Top