What I could suggest you is to use the SelectionChanged event of the RadPaneGroup control to update your stack and to listen to the Close event of the Docking control as well and to change the selection of the group that owns the closed pane.
Hope this information helps!
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.