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

Layout problems

1 Answer 117 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 21 Oct 2011, 03:05 PM
Hi,
I have a problem when loading a layout configuration file im my application at startup and when I choose to change layout:
My layout configuration is a XML file and i use a RadDock and the method LoadFromXml(path), where path is where the complete path where the layout configuration file is present (*.xml).
The file is present and the layout is correctly loaded, but the application performs a bad animation during the layout update.
My Goal is to hide the layout changing animations and to show only the final result with the windows correctly positioned on the RadDock control.
Is there a way to build the layout without showing the intermediate state of the creation process of the layout, but only the final result?

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 26 Oct 2011, 03:12 PM
Hi Jean-Marc,

You can try to use SuspendLayout / ResumeLayout methods before and after loading operation to achieve this functionality. Another solution is to create Panel in front of RadDock control and after the layout is loaded remove this dummy Panel control. Since the layout operation is an asynchronous operation, it may not be ready right after the LoadFromXml call. This is why you can keep the panel visible for a few seconds after the LoadFromXml call, using a Timer. I should admit that this is not a nice solution, but it is the only one I can provide for an issue of this kind.

I hope this helps. Do not hesitate to contact us if you have further questions or issues. Best wishes,
Julian Benkov
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
Dock
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or