LoadLayout => ArgumentOutOfRangeException

4 posts, 0 answers
  1. Michel
    Michel avatar
    4 posts
    Member since:
    May 2008

    Posted 22 Nov 2012 Link to this post


    I have an exception when I load a layout containing a radpane as a user control. The exception is:

    {System.ArgumentOutOfRangeException: L'argument spécifié n'était pas dans les limites de la plage de valeurs valides.
    Nom du paramètre : elementTypeName
       à Telerik.Windows.Controls.Docking.DockingLayoutFactory.GetElementByTypeName(IGeneratedItemsFactory factory, String elementTypeName)
       à Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadPane(XmlReader reader)
       à Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadPaneGroup(XmlReader reader)
       à Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadSplitItem(XmlReader reader)
       à Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadSplitContainer(XmlReader reader)
       à Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadDocking(XmlReader reader)
       à Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source, Boolean raiseEventsIfNoSerializationTag)
       à Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source)
       à Env.Nc.App.MainPage.LoadLayoutFromString(String xml)
       à Env.Nc.App.MainPage.MainPage_Loaded(Object sender, RoutedEventArgs e)
       à MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       à MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)}

    Does the load layout support radpane as user control?

    This my code :


    <UserControl x:Class="RadControlsSilverlightApp1.MainPage"
            mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
        <Grid x:Name="LayoutRoot">
            <telerik:RadDocking x:Name="radDocking" BorderBrush="{x:Null}"  BorderThickness="0" Padding="0" >
                <telerik:RadSplitContainer  Orientation="Horizontal" InitialPosition="DockedBottom">
                        <!--<telerik:RadPane Header="DonneesDescriptivesView">


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using System.IO;
    using System.Text;
    namespace RadControlsSilverlightApp1
        public partial class MainPage : UserControl
            public MainPage()
                this.Loaded += new RoutedEventHandler(MainPage_Loaded);
            void MainPage_Loaded(object sender, RoutedEventArgs e)
            private string SaveLayoutAsString()
                MemoryStream stream = new MemoryStream();
                stream.Seek(0, SeekOrigin.Begin);
                StreamReader reader = new StreamReader(stream);
                return reader.ReadToEnd();
            private void LoadLayoutFromString(string xml)
                using (Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
                    stream.Seek(0, SeekOrigin.Begin);


    <telerik:RadPane x:Class="RadControlsSilverlightApp1.DonneesDescriptivesView"

    Bye !
  2. Georgi
    Georgi avatar
    344 posts

    Posted 27 Nov 2012 Link to this post

    Hello Michel,

    Currently custom elements can not be loaded using the save/load layout logic. We have it logged here in our Public Issue Tracking System. As a workaround you can either edit the XML or the class of the Pane in and make sure the Pane is saved as a RadPane in order to be recognized by the load logic. 
    Hope this will help.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Theo
    Theo avatar
    6 posts
    Member since:
    Feb 2013

    Posted 14 Jun 2013 Link to this post

    Can you post a link to the specific bug in the bugtracker, I am not able to find it, and i would like to upvote it.
  5. Georgi
    Georgi avatar
    344 posts

    Posted 18 Jun 2013 Link to this post

    Hello Theo,

    The link for the PITS issue is http://www.telerik.com/support/pits.aspx#/public/silverlight/12105 .
    You can also access it by going to http://www.telerik.com/support/pits.aspx#/main/Release=AllReleases/Product=silverlight and search for " Save custom elements with the correct names " (you may need IE).
    Also if you have any other questions, please don't hesitate to write us.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top