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

7 posts, 0 answers
  1. Gary
    Gary avatar
    7 posts
    Member since:
    Sep 2010

    Posted 19 Jan 2012 Link to this post

    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
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 23 Jan 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Danilo
    Danilo avatar
    2 posts
    Member since:
    Sep 2012

    Posted 17 Aug 2012 Link to this post

    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 
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Aug 2012 Link to this post

    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.

  6. Danilo
    Danilo avatar
    2 posts
    Member since:
    Sep 2012

    Posted 20 Aug 2012 Link to this post

    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

  7. Vera
    Admin
    Vera avatar
    263 posts

    Posted 20 Aug 2012 Link to this post

    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.

  8. Jc
    Jc avatar
    25 posts
    Member since:
    Sep 2012

    Posted 30 Oct 2012 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready