Radpane content not resizing when changed after LoadLayout

1 posts, 0 answers
  1. YBOT
    YBOT avatar
    10 posts
    Member since:
    Jul 2017

    Posted 20 Jun 2019 Link to this post

    I have implemented load/save layout based on the examples on your Github page:

    using (FileStream layoutFile = new FileStream(Path.Combine(DockingLayoutPath, DockingLayoutFileName), FileMode.Open))
    {
      radDocking.LoadLayout(layoutFile);
    }

     

    using (FileStream layoutFile = new FileStream(Path.Combine(DockingLayoutPath, DockingLayoutFileName),FileMode.Create))
    {
       radDocking.SaveLayout(layoutFile);
    }

     

    I have datagrids inside my radpanes. When I do not load the layout the datagrid width will track the width of the radpane when resized. However when I save/load layout the datagrid will no longer track the radpane width when resized. On LoadLayout when the radpane is made smaller a horizontal scrollbar will appear and when the radpane is made bigger there will be an empty gap between the radpane border and the side of the datagrid.

     

    How do I get the radpane content sizing to work like it does before the layout has been loaded?

     

Back to Top