RadTabItem XamlParseException

6 posts, 0 answers
  1. pextiger Lim
    pextiger Lim avatar
    1 posts
    Member since:
    Mar 2005

    Posted 01 Aug 2011 Link to this post

    I'm getting a XamlParseException error when trying to run my project. Actually, sometimes the project will run and other times it won't. When I get the error it stops at InititalizeComponent() in the main page with the following error:
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.Windows.Controls.RadTabItem.OnLeftTemplateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
       at Telerik.Windows.PropertyMetadata.<>c__DisplayClass1.<Create>b__0(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty property)
       at MS.Internal.FrameworkCallbacks.InvalidateProperty(IntPtr nativeTarget, UInt32 propertyId) [Line: 0 Position: 0]

    Same problem was posted at Oct. 2010 and answered but answer thread link is not exist now. Your answer link is http://www.telerik.com/community/forums/silverlight/dockpanel/exception-on-loading-page-related-to-radpane.aspx#1446782. but is not accessible.

    It's very serious problem for me. please help us.
  2. bg
    bg avatar
    19 posts
    Member since:
    Jul 2006

    Posted 01 Aug 2011 Link to this post

    Same major issue here loading a RadPane control.
    "Unable to cast object of type 'System.Windows.Controls.ContentControl' to type 'Telerik.Windows.Controls.RadPane'."
  3. DevCraft R3 2016 release webinar banner
  4. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 04 Aug 2011 Link to this post

    Hi Everybody,

     We are not aware of none of these issues and we will need some more details about the applications in which these errors happen. If you could open support tickets and share with us sample projects that reproduce the problem this would be of great help.

    Some common mistakes that could cause such problems are if you are placing:
    - a Pane directly into the Docking control, DocumentHost or into a SplitContainer
    - a PaneGroup directly into the Docking control or into the DocumentHost
    - something that is not a Pane into the PaneGroup
    - something that is not a PaneGroup or a SplitContainer into a SplitContainer
    - somthing that is not a SplitContainer into the DockingControl or into the DocuemntHost

    The fix for all of these situations is to wrap the content which is not part of the Docking control into Panes, the Panes into PaneGroups and the PaneGroups into SplitContainers and to place only SplitContainers into the Docking control and to the DocumentHost.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

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

  5. bg
    bg avatar
    19 posts
    Member since:
    Jul 2006

    Posted 04 Aug 2011 Link to this post

    Our issue was a result of us trying to override the context menu for the Rad Pane.

            <telerikNavigation:RadMenuItem Header="Dockable" Command="radDock:RadDockingCommands.Dockable" />
            <telerikNavigation:RadMenuItem Header="Tabbed Document" Command="radDock:RadDockingCommands.TabbedDocument" />

    We just nulled out the Context menu instead and that fixed our problem.



  6. Pana
    Pana avatar
    748 posts

    Posted 05 Aug 2011 Link to this post


    I am glad you have figured out how to workaround the problem.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  7. Gaurang
    Gaurang avatar
    29 posts
    Member since:
    Dec 2010

    Posted 16 Sep 2011 Link to this post

    Hi All,

    I have problem that when I bind menu into GridView it shows and work perfectly.
    But my problem is when I load the layout It gives me error like Error HRESULT E_FAIL and my layout does not restore as user SaveLayout.
    If try to bind menu after Layout Load then It does not seen any menu and all things work well.

    I have post my problem on (Menu, Docking)

    I try to set ContextMenuTemplate = "{x:Null}"

    <RadDock:RadDocking x:Name="DockingDashBoard" HasDocumentHost="False" AllowUnsafeMode="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <RadDock:RadSplitContainer Name="schedulerspliter" InitialPosition="DockedLeft" Orientation="Vertical">
    <RadDock:RadPaneGroup MinHeight="200">
    <RadDock:RadPane x:Name="PaneToDoList" RadDock:RadDocking.SerializationTag="PaneToDoList" ContextMenuTemplate="{x:Null}" CanUserClose="False" CanDockInDocumentHost="False" CanFloat="True" Header="To-Do List">
    <Controls:GridView x:Name="gvToDoList" AutoGenerateColumns="True" AutoGeneratingColumn="gvToDoList_AutoGeneratingColumn" IsReadOnly="True" EnableColumnVirtualization="False"
    ScrollMode="RealTime" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" IsFilteringAllowed="False" ShowGroupPanel="False" Loaded="gvToDoList_Loaded" VerticalGridLinesBrush="Gray" RowLoaded="gvToDoList_RowLoaded" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"> </Controls:GridView>

    But my docking is stop. If I try to dock my items it gives me Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) error.

    Please reply me.

Back to Top
DevCraft R3 2016 release webinar banner