This is a migrated thread and some comments may be shown as answers.

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

1 Answer 56 Views
GridView
This is a migrated thread and some comments may be shown as answers.
SPE
Top achievements
Rank 1
SPE asked on 17 Jul 2013, 06:06 AM
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)

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 17 Jul 2013, 06:38 AM
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 >>
Tags
GridView
Asked by
SPE
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or