RadGridView - Error when attempting to group by column...

7 posts, 0 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 14 Oct 2011 Link to this post

    After switching to the most recent telerik dll's, I have started seeing an exception when I attempt to group by a column in the RadGridView.

    (EDIT)
    Actually this problem isn't with grouping... it's occuring when I am dragging the column header.  I am running in legacy drag and drop mode and after my "OnGridViewDropInfo" event completes, I get this error...

     

     

     

     

    System.ArgumentNullException: Value cannot be null.
    Parameter name: element
       at Telerik.Windows.Controls.ChildrenOfTypeExtensions.<GetChildrenRecursive>d__3.MoveNext()
       at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
       at Telerik.Windows.Controls.GridView.DragDropHelper.GetElement(Grid cue)
       at Telerik.Windows.Controls.GridView.DragDropController.OnHeaderCellDragInfo(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.DragDropProvider_DragInfo(Object sender, DragDropEventArgs e)
       at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDragInfo()
       at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.NotifySource()
       at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.OnDropImpossible()
       at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnRealDrag(IMouseEventArgs e)
       at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseMoveInternal(IMouseEventArgs e)
       at Telerik.Windows.Controls.DragDrop.SilverlightDragDropProvider.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)
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 17 Oct 2011 Link to this post

    Hello Rob,

    Can you try our latest internal build - version 2011.2.1010? The exception should be resolved.
     
    Regards,
    Yordanka
    the Telerik team

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

  3. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 16 Nov 2011 Link to this post

    Hi again,

    I just tried this on the latest Q3 2011 build (2011.3.1116.1040) and I'm still getting the error...
     
    The error appears to be the same:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: element
       at Telerik.Windows.Controls.ChildrenOfTypeExtensions.<GetChildrenRecursive>d__3.MoveNext()
       at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
       at Telerik.Windows.Controls.GridView.DragDropHelper.GetElement(Grid cue)
       at Telerik.Windows.Controls.GridView.DragDropController.OnHeaderCellDragInfo(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.DragDropProvider_DragInfo(Object sender, DragDropEventArgs e)
       at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDragInfo()
       at Telerik.Windows.Controls.DragDrop.SilverlightDragDropProvider.OnDrop()
       at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseLeftButtonUpInternal()
       at Telerik.Windows.Controls.DragDrop.SilverlightDragDropProvider.OnCoverRectangleMouseLeftButtonUp(Object sender, EventArgs 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)
  4. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 16 Nov 2011 Link to this post

    Hi again,

    I just tried this on the latest Q3 2011 build (2011.3.1116.1040) and I'm still getting the error...
     
    The error appears to be the same:
    System.ArgumentNullException: Value cannot be null.
    Parameter name: element
       at Telerik.Windows.Controls.ChildrenOfTypeExtensions.<GetChildrenRecursive>d__3.MoveNext()
       at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
       at Telerik.Windows.Controls.GridView.DragDropHelper.GetElement(Grid cue)
       at Telerik.Windows.Controls.GridView.DragDropController.OnHeaderCellDragInfo(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.DragDropProvider_DragInfo(Object sender, DragDropEventArgs e)
       at Telerik.Windows.Controls.DragDrop.DragDropProviderBase.RaiseDragInfo()
       at Telerik.Windows.Controls.DragDrop.SilverlightDragDropProvider.OnDrop()
       at Telerik.Windows.Controls.DragDrop.SimulatedDragDropProvider.OnCoverRectangleMouseLeftButtonUpInternal()
       at Telerik.Windows.Controls.DragDrop.SilverlightDragDropProvider.OnCoverRectangleMouseLeftButtonUp(Object sender, EventArgs 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)
  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 17 Nov 2011 Link to this post

    Hello Rob,

    We checked the problem and indeed, the exception is not resolved. We will be fixing it for the next internal build on Monday.

    Thank you for the report. I have updated your Telerik points.

    All the best,
    Yordanka
    the Telerik team

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

  6. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 22 Nov 2011 Link to this post

    I just looked and couldn't see the internal build from yesterday?  Was there one?
  7. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 22 Nov 2011 Link to this post

    Hello Rob,

    The latest internal build was delivered today and you can find it under Your Account for download.

    Regards,
    Hristo
    the Telerik team

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

Back to Top