This is a migrated thread and some comments may be shown as answers.

Error when calling the method LoadLayout.

2 Answers 65 Views
Docking
This is a migrated thread and some comments may be shown as answers.
adriel silva
Top achievements
Rank 1
adriel silva asked on 22 Feb 2011, 09:50 PM
Hi,

After
 calling the method LoadLayout, the application returns the following error ...

Call :

MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(layout));
radDocking.LoadLayout(memoryStream);

Error :

System.ArgumentException was caught
  Message=Value does not fall within the expected range.
  StackTrace:
       em MS.Internal.XcpImports.CheckHResult(UInt32 hr)
       em MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
       em MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
       em System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
       em System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
       em System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value)
       em Telerik.Windows.Controls.RadDocking.InitializeSplitContainer(RadSplitContainer container)
       em Telerik.Windows.Controls.RadDocking.OnItemsChanged(NotifyCollectionChangedEventArgs e)
       em System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
       em System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
       em System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
       em System.Windows.Controls.ItemCollection.AddImpl(Object value)
       em System.Windows.Controls.ItemCollection.AddInternal(Object value)
       em System.Windows.PresentationFrameworkCollection`1.Add(T value)
       em Telerik.Windows.Controls.RadDocking.AddSplitContainer(RadSplitContainer radSplitContainer)
       em Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadDocking(XmlReader reader)
       em Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source, Boolean raiseEventsIfNoSerializationTag)
       em Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source)
       em Bipper.Shell.ShellView.<>c__DisplayClass4.<LoadLayout>b__3()
  InnerException: 

Att,
Adriel Codeco

2 Answers, 1 is accepted

Sort by
0
adriel silva
Top achievements
Rank 1
answered on 24 Feb 2011, 07:39 PM
Please... anyone have any idea what might be happening?
I'm worried that the closing date of a version of the project is coming and is still occuring this error.

the error is occurring after calling the event :
Telerik.Windows.Controls.RadDocking.OnItemsChanged(NotifyCollectionChangedEventArgs e)

when calling the method to follow in the event above:
Telerik.Windows.Controls.RadDocking.InitializeSplitContainer(RadSplitContainer container)

this seems to me an internal error.
0
George
Telerik team
answered on 28 Feb 2011, 08:55 AM
Hello,

Please, refer to the following links:

I hope you find them helpful. If it doesn't help, could you please give us some more information about your scenario? A sample code will be very helpful.

 

All the best,
George
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Docking
Asked by
adriel silva
Top achievements
Rank 1
Answers by
adriel silva
Top achievements
Rank 1
George
Telerik team
Share this question
or