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

The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals

6 Answers 330 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 19 Jan 2012, 04:34 PM
I'm using the RadGridView inside a RadPane and trying to drag a row to another grid in a different pane. If the pane is pinned it works perfectly but when the pane is not pinned I get the following error as soon as I start dragging:

System.InvalidOperationException was unhandled by user code
  Message=The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
  Source=PresentationCore
  StackTrace:
       at System.Windows.Media.Visual.TransformToVisual(Visual visual)
       at Telerik.Windows.Controls.DragDrop.DragDropProvider.OnDragInitialized(Object sender, DragInitializeEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDrop\DragProviders\DragDropProvider.cs:line 60
       at Telerik.Windows.DragDrop.DragInitializeEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializeEventArgs.cs:line 95
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at Telerik.Windows.DragDrop.DragInitializer.StartDrag() in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 173
       at Telerik.Windows.DragDrop.DragInitializer.DragSourcePreviewMouseMove(Object sender, MouseEventArgs e) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 157
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
  InnerException:

I'm stumped as to how go about fixing this so any help would be appreciated!

-Gary

6 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 23 Jan 2012, 03:58 PM
Hello,

Thnk you for reporting this issue. I have logged this in our PITS system where you can track its progress. Fix for this can be expected in our next intarnal build.

Please, excuse us for the inconvnience caused.

P.S. I have updated your telerik points accordingly.

Kind regards,
Tsvyatko
the Telerik team

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

0
Danilo
Top achievements
Rank 2
answered on 17 Aug 2012, 03:07 PM
Tsvyatko,

I'm having the same issue as Gary, I just get Telerik controls (Q2),  so the question is how can i fix it?

Thanks 
0
Vlad
Telerik team
answered on 20 Aug 2012, 05:50 AM
Hi,

 Our current official version is Q2 2012 SP1. Can you try it instead? 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Danilo
Top achievements
Rank 2
answered on 20 Aug 2012, 02:26 PM
Hi,

I'm using the Q2 2012 SP1 release, this happends when i'm trying to resize controls, even when i'm trying to add another control

0
Vera
Telerik team
answered on 20 Aug 2012, 03:32 PM
Hi Danilo,

 
I tried to reproduce the problem using Q2 2012 SP but to no avail. May I ask you to take a look at the attached project and to let me know whether you can get the described issue on it? 


Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jc
Top achievements
Rank 1
answered on 30 Oct 2012, 06:34 AM
Hi guys,

I've got the same error, but with another piece of code, to get RadGridView coordinates, with RadControls WPF Q2 2012 SP2:

RadGridView grid = control as RadGridView;
GeneralTransform gt = grid.TransformToVisual(Application.Current.MainWindow as UIElement);
Point offset = gt.Transform(new Point(0, 0));
double controlTop = offset.Y;

Any news about this issue?
Thank you
Tags
DragAndDrop
Asked by
Gary
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Danilo
Top achievements
Rank 2
Vlad
Telerik team
Vera
Telerik team
Jc
Top achievements
Rank 1
Share this question
or