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

Save\Load RadDocking layout with custom DocumentPanes

2 Answers 57 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 14 Mar 2014, 11:40 AM
Hello. I decided to create my own DocumentPane based on RadDocumentPane. Then I tried to save and load RadDocking layout. Saving layout operation works good, but loading layout operation gives me a error:

​Specified argument was out of the range of valid values.
Parameter name: elementTypeName

How can I load layout with my custom documentPanes?

2 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 18 Mar 2014, 02:48 PM
Hi Sergey,

You could use the CustomElementLoading event of RadDocking control. The event will be fired on loading layout if there is unknown element ( for example, custom Pane). All you need is to set AffectedElement with the correct object.

Please, refer to the attached project and let me know if this helps.

Regards,
George
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Sergey
Top achievements
Rank 1
answered on 20 Mar 2014, 07:03 AM
Thanks. It helped me.
Tags
Docking
Asked by
Sergey
Top achievements
Rank 1
Answers by
George
Telerik team
Sergey
Top achievements
Rank 1
Share this question
or