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

[Solved] Unhandled Error

6 Answers 195 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.
Heather
Top achievements
Rank 1
Heather asked on 04 Nov 2009, 07:49 PM
OK - I'm going to do my best to explain this.  I have just upgraded to 2009.3.1103.1030 from 2009.2.925.1030.  We use Prism/MVVM.  I have a shell app with a radtabcontrol as a region adapter.  I then have another project with an edit view which is loaded into the shell region adapter.  The edti view has an edit area on the top (textblocks and textboxes), a radgridview on the bottom (in another radtabcontrol) and Save, Cancel buttons on the bottom.  The cancel button triggers an event which is monitored by a class in the shell app.  When the event is received, the shell app gets the view model assocaited with the view to check for changes.  If there are changes the user is prompted to discard changes by doing a MessageBox.Show.  If the user "OKs" the discard then the view is closed and removed from the shell tab control - at least that is what used to happen when using the Q2 release.

If there are no changes and the message box is not displayed everything works as expected.
If there are changes, and the message box is displayed, and I respond using the keyboard, everything works as expected.
If the message box is displayed and I use the mouse to click on the OK and the OK button is over any part of the grid then I get the exception below.
If the message box is displayed and I move it so that the OK button is NOT over any part of the grid, everything works as expected. 

Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: 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.MouseEventArgs_GetPosition(MouseEventArgs args, UIElement relativeTo)
   at System.Windows.Input.MouseEventArgs.GetPosition(UIElement relativeTo)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.ProcessMouseMoveSelection(MouseEventArgs e)
   at Telerik.Windows.Controls.GridView.GridViewDataControl.OnMouseMove(MouseEventArgs e)
   at System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)    
  Foghorn.UITestPage.aspx, line 56 character 13

Please help!  This all worked with the Q2 release.



6 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 05 Nov 2009, 07:26 AM
Hi Heather,

We fixed this immediately! Please open a formal support ticket and we will send you our latest binaries. I've added 2000 Telerik points to your account.

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Heather
Top achievements
Rank 1
answered on 05 Nov 2009, 12:45 PM
Just opened ticket #256042.  Will await the new binaries and verify that it fixes the issue.
0
Kakid
Top achievements
Rank 1
answered on 20 Jul 2010, 09:00 AM
Hi,
I'm using Telerik RadControls For Silverlight 2010. Q2, and I have a similar error , for an unhandled Error when I try to group my data in a radGrid, the grid is bind to data sources via RIA service and contain simple data (not templated column) , the grid work fine the first time I use it, but since yesterday all the grid I have in my project throw the same error when I try to Group.

Détails de l’erreur de la page Web

Agent utilisateur : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Horodateur : Tue, 20 Jul 2010 07:52:07 UTC


Message : Unhandled Error in Silverlight Application
Code: 4004    
Category: ManagedRuntimeError       
Message: System.ArgumentException: La valeur n'est pas comprise dans la plage attendue.
   à MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   à MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
   à MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
   à System.Windows.UIElement.TransformToVisual(UIElement visual)
   à Telerik.Windows.Controls.ApplicationHelper.TransformToScreenRoot(UIElement target)
   à Telerik.Windows.Controls.VisualTreeHelperExtensions.GetElementsInHostCoordinates[T](UIElement subtree, Point position)
   à Telerik.Windows.Controls.GridView.GridViewHeaderCell.CanBeginDrag(DragDropQueryEventArgs e)
   à Telerik.Windows.Controls.GridView.GridViewHeaderCell.OnDragQuery(Object sender, DragDropQueryEventArgs e)
   à Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   à Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   à Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
   à Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
   à Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   à Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
   à Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   à Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
   à Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.RaiseDragQuery()
   à Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.TryStartDrag(IMouseEventArgs e)
   à Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
   à Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnTrackedElementMouseMove(Object sender, MouseEventArgs e)
   à MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   à MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)     

Ligne : 56
Caractère : 13
Code : 0

Can you please help me to find a solution ?
Thank you
0
Tsvyatko
Telerik team
answered on 21 Jul 2010, 10:01 AM
Hello Kakid,

We have found that drag and drop functionality has issue using it within child window or popup. This issue  has being fixed and will be included in our next internal build.
 Please excuse us for inconvenience caused.

Sincerely yours,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
saurabh
Top achievements
Rank 1
answered on 08 Nov 2010, 06:56 PM
hi,

Problem still occurs with latest hotpix dlls for gridview column reordering on child window.
Can you please provide suggestion or when next build will be ready?

Thanks & Regards,
Saurabh
0
Tsvyatko
Telerik team
answered on 09 Nov 2010, 09:47 AM
Hello saurabh,

I have prepared simple project demonstrating this scenario. However, I am unable to reproduce this issue. Please have a look at the attachment and let me know if this helps or if the issue can be reproduced with attached project.

Regards,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Heather
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Heather
Top achievements
Rank 1
Kakid
Top achievements
Rank 1
Tsvyatko
Telerik team
saurabh
Top achievements
Rank 1
Share this question
or