RadGridView ArgumentOutOfRangeException when trying to paste contents from clipboard into cells in Edit Mode

2 posts, 0 answers
  1. SPE
    SPE avatar
    36 posts
    Member since:
    Sep 2010

    Posted 17 Jul 2013 Link to this post

    Hi,

    I'm currently using an outdated version of telerik controls - probably RadControls for Silverlight Q2 2011 SP2.

    I recently got the following error message, which seems to be caused by my clients pasting data (might be in Excel format, though I'm not quite sure) from the clipboard to RadGridView cells in Edit Mode.

    My questions are:

    1. Has this error been fully fixed in the latest version of the same product?

    2. Is there any good ways to handle the error without shifting to a newer version?

    Thank you.


    System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem.
    Parameter name: index
       at System.ThrowHelper.ThrowArgumentOutOfRangeException()
       at Telerik.Windows.Controls.GridView.Clipboard.DataControlClipboardExtensions.GetRightBoundaryForPasteOperation(GridViewDataControl dataControl, CellLocation location, List`1 values)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.PerformPaste(String text)
       at Telerik.Windows.Controls.GridView.GridViewDataControl.PasteFromClipboard()
       at Telerik.Windows.Controls.GridView.GridViewDataControl.PasteExecuted(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.ExecutePendingCommand()
       at Telerik.Windows.Controls.GridView.GridViewDataControl.PendAndExecuteCommands(KeyEventArgs e)
       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, UInt32 flags)

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 17 Jul 2013 Link to this post

    Hi Sunmin,

    Generally, even if there is a bug in an old version, we cannot fix it and my suggestion will be always to work with the latest ones. Could you try to reproduce the same behavior on our demos ?
    Could you verify whether you have invisible columns for example ? 

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top