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

[Solved] Group By Columns Throws Exception

2 Answers 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 03 Jan 2011, 05:47 PM
When I attempt to drag a column of the grid to the group by section I get the following exception that throws over and over:

System.ArgumentException: Value does not fall within the expected range.
   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   at System.Windows.UIElement.TransformToVisual(UIElement visual)
   at Telerik.Windows.Controls.ApplicationHelper.TransformToScreenRoot(UIElement target)
   at Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, Point position)
   at Telerik.Windows.Controls.VisualTreeHelperExtensions.<>c__DisplayClass5`1.<GetElementsInScreenCoordinatesFromOpenedPopups>b__4(Popup p)
   at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   at System.Linq.Enumerable.<ConcatIterator>d__71`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Telerik.Windows.Controls.DragDrop.DragDropEventArgs.GetElement[T](Point dragPoint)
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OverrideDragStatusIfNeeded(DragDropEventArgs e)
   at Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnDragInfo(Object sender, DragDropEventArgs e)
   at Telerik.Windows.Controls.DragDrop.DragDropEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
   at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
   at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.RaiseDragInfo()
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.NotifyDestination(FrameworkElement destination)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnDropImpossible()
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnRealDrag(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

The whole application hangs at this point. This has worked for me in the past, but I cannot figure out why I continue to get this exception now. Any ideas as to what may be causing the error?

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 04 Jan 2011, 07:55 AM
Hello Andrew,

May you test your application with the binaries from our latest internal build ? Furthermore, you may take a look at this forum thread for a reference.

 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Andrew
Top achievements
Rank 1
answered on 04 Jan 2011, 05:31 PM
Upgrading did indeed fix the issue. Thank you.
Tags
GridView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Maya
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or