Issues in Treeview Item selected

5 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    18 posts
    Member since:
    Oct 2008

    Posted 16 Oct 2008 Link to this post

    Hi,

    I  have used RadTreeview control in silverlight 2 beta 2.  Now I am migrating beta to  RC1.  I took the latest control RadTreeview RC1 version.

    When I select ( I mean click on treeview Item) it is giving the following error.

    the steps I did.

    I create Trview control dynamically.  and put in a user control and I added that user control in Microsoft tab control. that tab is loaded in RadWindow control .
    It is working fine in beta 2 but as I migrated to RC1 with latest RC1 version of Rad controls. It giving error as i select list view Item. the same working fine beta 2.
    Would you like to help me,Please?
    Please look at the below errors.




    +++++++++++++++++++++++++++++++++++++++++++++++
    Line:  454
    Char:  17
    Error:  Sys.InvalidOperationException: ManagedRuntimeError error #4004 in control 'Xaml1': System.Exception: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
       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.UIElement_TransformToVisual(UIElement element, UIElement visual)
       at System.Windows.UIElement.TransformToVisual(UIElement visual)
       at Telerik.Windows.Controls.RadTreeViewItem.get_IsInViewport()
       at Telerik.Windows.Controls.RadTreeViewItem.BringIntoView()
       at Telerik.Windows.Controls.RadTreeViewItem.OnIsSelectedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
       at Telerik.Windows.DependencyPropertyExtensions.<>c__DisplayClass1.<GetSystemMetadata>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.RadTreeViewItem.set_IsSelected(Boolean value)
       at Telerik.Windows.Controls.RadTreeView.SelectionChanger_SelectionChanged(Object sender, SelectionChangedEventArgs e)
       at Telerik.Windows.Controls.SelectionChanger`1.InvokeSelectionChangedEvent()
       at Telerik.Windows.Controls.SelectionChanger`1.End()
       at Telerik.Windows.Controls.RadTreeView.SetSelectedItem(RadTreeViewItem itemContainer)
       at Telerik.Windows.Controls.RadTreeView.HandleItemSelectionFromUI(RadTreeViewItem itemToSelect)
       at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
       at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
    Code:  0
    URL:  http://localhost:1166/xWEBIWeb/xWEBITestPage.aspx
    Previous  Next 
    ++++++++++++++++++++++++++++++++++++++++++++++++++

  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Oct 2008 Link to this post

    Hello Sandeep,

    This is an issue with the current Microsoft Silverlight runtime. Try adding the RadWindow control as a child of a panel, so the Radwindow is part of the visual tree. This should fix the problem. Please let us know if the problem persist.

    Greetings,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. TWT
    TWT avatar
    9 posts
    Member since:
    Aug 2006

    Posted 01 Nov 2008 Link to this post

    I tried your suggestion but still did not fix the issue.  I have latest Telerik controls and I am using a Telerik Window which contains a custom user control with a TreeView and Calendar control.  The Calendar control works without any issue.  The TreeView works without any issues when expanding the tree node but when selecting it blows chunks.... the error is as follows:  Please advise.

    Microsoft JScript runtime error: Unhandled Error in Silverlight 2 Application Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))   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.UIElement_TransformToVisual(UIElement element, UIElement visual)
       at System.Windows.UIElement.TransformToVisual(UIElement visual)
       at Telerik.Windows.Controls.RadTreeViewItem.get_IsInViewport()
       at Telerik.Windows.Controls.RadTreeViewItem.BringIntoView()
       at Telerik.Windows.Controls.RadTreeViewItem.OnIsSelectedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs args)
       at Telerik.Windows.DependencyPropertyExtensions.<>c__DisplayClass1.<GetSystemMetadata>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object newValue, Object oldValue)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isSetByStyle, Boolean isSetByBuiltInStyle)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.RadTreeViewItem.set_IsSelected(Boolean value)
       at Telerik.Windows.Controls.RadTreeView.SelectionChanger_SelectionChanged(Object sender, SelectionChangedEventArgs e)
       at Telerik.Windows.Controls.SelectionChanger`1.InvokeSelectionChangedEvent()
       at Telerik.Windows.Controls.SelectionChanger`1.End()
       at Telerik.Windows.Controls.RadTreeView.SetSelectedItem(RadTreeViewItem itemContainer)
       at Telerik.Windows.Controls.RadTreeView.HandleItemSelectionFromUI(RadTreeViewItem itemToSelect)
       at Telerik.Windows.Controls.RadTreeViewItem.OnHeaderMouseLeftButtonDown(Object sender, MouseButtonEventArgs e)
       at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 03 Nov 2008 Link to this post

    Hello TWT,

    We will address this issue within the official release that we re shipping this week.

    Thanks for reporting it!

    Kind regards,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 11 Nov 2008 Link to this post

    Hello Trent,

    We fixed the issue below - you can update to the latest version of the controls.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top