Hello Telerik,
Thank you for the recently released DockManager component. It really helps,
However, I am trying to use the DockManager's persistent state (GetState(), SetState(), OnStateInit, OnStateChanged), and it seems that the DockManagerState object provided by GetState() and the events is simply wrong:
- Panel sizes are a mix of their current values, old values and the initial Size settings;
- When restoring a saved state, sizes are applied inconsistently;
- SetState(null) does literally nothing.
My goal is to save the DockManager's layout in an external string, then restart the application and restore the DockManager's layout from that string.
From a quick stepthrough, one of the problem places is DockManagerContentPane.SetUnpinned(). It forces a refresh on the same pane that is being configured from the saved state, and its size reverts to the default. Possibly, it happens more often for panes with a constant Id property.
Update. If I remove Id properties from all content panes, then the layout has the right size, but all panes are empty. No content. If I put Id properties back, I get the content, but the pane size is lost.
Can you please confirm that you are aware of the problem? To create a reproducible example app may be too hard.