LoadLayout without closing and reopening?

4 posts, 1 answers
  1. Buzz
    Buzz avatar
    36 posts
    Member since:
    Oct 2010

    Posted 26 Sep 2019 Link to this post

    When I call LoadLayout to reload my saved layout, my windows close and reopen.
    It works, but I'd rather they just jump (or animate) to the loaded positions.

    Is there a way to accomplish this?

    Thank you
    Buzz

  2. Answer
    Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1074 posts

    Posted 01 Oct 2019 Link to this post

    Hi Buzz,

    With the current implementation of the LoadLayout method, the current layout of RadDocking - all RadPanes (including floating panes), RadPaneGroups and RadSplitContainers - is cleaned. You can prevent this from happening by canceling the ElementLayoutCleaning event for the given pane as explained in this article. In this case, however, you will need to manually persist the settings of the floated panes.

    I hope you find this information helpful. Please let me know if I can further assist you with anything else.

    Regards,
    Dilyan Traykov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Buzz
    Buzz avatar
    36 posts
    Member since:
    Oct 2010

    Posted 09 Oct 2019 in reply to Dilyan Traykov Link to this post

    Between canceling in RadDockingElementLayoutCleaning and RadDockingElementLoading I was able to do what I needed for my situation.
    You led me in the right direction.

    Thank you
    Buzz

  4. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1074 posts

    Posted 10 Oct 2019 Link to this post

    Hi Buzz,

    I'm happy to hear that you managed to find a suitable solution for your scenario. Please let me know if I can further assist you with anything else.

    Regards,
    Dilyan Traykov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top