Layout problems

2 posts, 0 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 21 Oct 2011 Link to this post

    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?
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 26 Oct 2011 Link to this post

    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.

Back to Top