This is a migrated thread and some comments may be shown as answers.

Event for when any layout changed have occurred

1 Answer 138 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 17 Aug 2011, 04:12 PM
I am trying determine if I need to save the layout for my Docking control due to a layout change by the user.  I have tried a handful of events to make this happen but none are working the way I think they should. 

RadDocking - LayoutUpdated event - fired whether the user makes a change to the layout or not
RadDocking - LayoutChangeStarted event - NOT fired if I simply move a pane around, but is fired if I change a SplitContainer
RadDocking - LayoutChangeEnded event - NOT fired if I simply move a pane around, but is fired if I change a SplitContainer

Is there an event that tells me if any changes were made to the layout whether they be panes being moved around OR SplitContainers being changed?

Tks.

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 22 Aug 2011, 10:10 AM
Hi Brian,

 The LayoutUpdated method comes from the framework and is fired whenever Silverlight detects that the layout was changed which is much more frequently than the Docking control's layout is updated. We don't recommend you to use this event.
The LayoutChangeStarted and LayoutChangeEnded events are fired when the layout of the Docking control is changing which doesn't actually happen when you are dragging already floating pane. The ToolWindow control also has these events so you could use them to handle all the situations.

You could also use the PaneStateChanged event of the Docking control in combination with the some of the events of the ToolWindow - LocationChanged, SizeChanged, LayoutChangeStarted, LayoutChangeEnded.

Hope this information is helpful.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Docking
Asked by
Brian
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or