Clicking on RichTextBox Hyperlink with RadTreeView throws Exception

2 posts, 0 answers
  1. Anton Trinkunas
    Anton Trinkunas avatar
    2 posts
    Member since:
    Feb 2010

    Posted 29 Mar 2012 Link to this post


    In very simple scenario RadTreeView throws exception. User should just click on hyperlink. Here is xaml code:

    <Grid x:Name="LayoutRoot" Background="White">
                <telerik:RadTreeView >               
                <RichTextBox IsReadOnly="True">
                        <Hyperlink NavigateUri="">

    If to remove RadTreeView from xaml everything works fine.
    Here is exception:

    System.InvalidOperationException: Reference is not a valid visual DependencyObject.
       at System.Windows.Media.VisualTreeHelper.GetRelative(DependencyObject reference, RelativeKind relativeKind)
       at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
       at Telerik.Windows.Controls.ParentOfTypeExtensions.GetParent(DependencyObject element)
       at Telerik.Windows.Controls.ParentOfTypeExtensions.<GetParents>d__0.MoveNext()
       at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
       at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value)
       at Telerik.Windows.Controls.ParentOfTypeExtensions.IsAncestorOf(DependencyObject element, DependencyObject descendant)
       at Telerik.Windows.Controls.TreeView.TreeViewPanel.OnGridViewVirtualizingPanelLostFocus(Object sender, RoutedEventArgs e)
       at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

    Reproducible on RadControls 2012_1_326.

  2. Petar Mladenov
    Petar Mladenov avatar
    3162 posts

    Posted 03 Apr 2012 Link to this post

    Hi Anton,

     We managed to reproduce this issue and we logged it in our PITS where you are able to track its status. We also updated your telerik account points. as a thanks for your cooperation.

    All the best,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top