URGENT : Silverlight clipboard throwing error when data copied from RadWindow

4 posts, 0 answers
  1. Shiva
    Shiva avatar
    61 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post


    In our project we have a requirement to open a pop up from a main page. For this, we are using telerik rad window because its features fulfills all what we need. As part of the requirement, user should be able to copy the data from the pop up window and paste the same on the main page. This works fine few times (i.e. copying and pasting data from pop up to main page). But repeating this process of copying and pasting is causing the silverlight clipboard throwing error. As part of the copy process, we are just copying a word so the data getting copied is not heavy or large in any form.

    Below is the snapshot of the error we are getting.

    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50917.0&File=mscorlib.dll&Key=ArgumentOutOfRange_Index
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at System.Collections.Generic.List`1.RemoveAt(Int32 index)
       at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.RemoveUnnecessaryColumns(List`1 dataItemsMatrix, IEnumerable`1 columns)
       at Telerik.Windows.Controls.GridView.Clipboard.Writers.WriterBase.GetSelectedItemsAsObjectMatrix(CellInfoCollection selectedCells)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.CopyToClipboard()
       at Telerik.Windows.Controls.GridView.GridViewDataControl.CopyExecuted(Object sender, ExecutedRoutedEventArgs e)
       at Telerik.Windows.Controls.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       at Telerik.Windows.Controls.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at Telerik.Windows.Controls.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at Telerik.Windows.Controls.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
       at Telerik.Windows.Controls.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
       at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
       at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
       at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
       at Telerik.Windows.Controls.RoutedCommand.ExecuteImpl(Object parameter, UIElement target)
       at Telerik.Windows.Controls.RoutedCommand.Execute(Object parameter, UIElement target)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.OnKeyDown(KeyEventArgs e)
       at System.Windows.Controls.Control.OnKeyDown(Control ctrl, EventArgs e)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

    Can you please assist us on this as this is really important for us??


  2. Shiva
    Shiva avatar
    61 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post

    More updates for the group.....

    On further analysis, I figured out that the error actually comes up when the radgrid cell of the main window is copied. The error appeared when I accidently pressed ctrl+c on the cell of the main page grid.

    Any pointers will be highly appreciated.

  3. Vlad
    Vlad avatar
    11100 posts

    Posted 09 Dec 2010 Link to this post

    Hello Shiva,

     Let's use your other thread instead. 

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  4. Shiva
    Shiva avatar
    61 posts
    Member since:
    Oct 2010

    Posted 09 Dec 2010 Link to this post

    Dear Vlad,

    Glad to hear back from you again. By the way I have resolved this issue and have updated the other post accordingly.

    Thank you again for finding time to look into the issue again.

Back to Top