Paint issue when serealizing from XML

2 posts, 0 answers
  1. Barry Harkness
    Barry Harkness avatar
    4 posts
    Member since:
    Feb 2006

    Posted 14 Oct 2009 Link to this post

    When loading the RadDock from a previously saved XML file, there is a noticeable paint issue. The first thing drawn on screen is one of the docked windows, then about a second or two after that, the rest of the dock loads. Simply turning off the loading from XML fixes the issue. I thought it might be a problem with the RadDock's active window being incorrectly set, but after reading this post ( and explicitly setting the active window, I don't think active window is the issue because the paint problem persists.

  2. Georgi
    Georgi avatar
    296 posts

    Posted 16 Oct 2009 Link to this post

    Hi Barry,

    Thank you for contacting us.

    Most probably this is due to the fact the LoadFromXML method is trying to activate an Auto-hidden window, which on its hand will be animated and thus will block the UI thread for a second.

    You may try the following approach:

    private void LoadRadDock()
        //begin a transaction block
        //activate a window, that is not auto-hidden
        this.radDock1.ActiveWindow = this.toolWindow1;

    Please, let me know whether this is of help.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top