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

RadDocking LoadLayout => ArgumentOutOfRangeException

3 Answers 39 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Theo
Top achievements
Rank 1
Theo asked on 16 Aug 2013, 07:43 AM
When trying to do a loadlayout on a RadDocking control, it will throw an ArgumentOutOfRangeException. This exception is thrown, due to II use custom controls in the RadDocking Control. I also saw this thread, http://www.telerik.com/community/forums/silverlight/docking/loadlayout-argumentoutofrangeexception.aspx. The thread mentioned, is about SIlverLight and I use the WPF version. So is this a known bug, or is there maybe a workaround available?

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 21 Aug 2013, 09:32 AM
Hi Theo,

First of all, please accept my apology for the late reply. Now for your question - the limitation is valid for both WPF and Silverlight. As mentioned in the forum thread you've found, you can workaround the problem by editing the xml serialized string and replacing your UserControl name with RadPane. I'm sending you a sample project demonstrating this approach.

Hopefully this helps. Feel free to contact us in case you have any problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Ola
Top achievements
Rank 1
answered on 25 Jun 2015, 10:34 AM
When you get a ArgumentOutOfRangeException on LoadLayout is it possible to still restore some kind of default layout with the RadPanes that are present at the moment? As it is now the Docking control seems to forget about the loaded panes if LoadLayout generates the exception.
0
Nasko
Telerik team
answered on 30 Jun 2015, 06:01 AM
Hi Ola,

The desired by you functionality and behavior is currently not supported by RadDocking - this is not how the control is expected to work. We suggest you to check the approach proposed by Rosen in order to handle the exception - the exception should be prevent from throwing in order to make your project works as expected.

Hopes the provided information will help you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Docking
Asked by
Theo
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Ola
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or