Unplanned
Last Updated: 07 May 2019 10:20 by ADMIN
ADMIN
Telerik Admin
Created on: 22 Mar 2012 12:15
Category: Docking
Type: Bug Report
5
Docking: SelectedIndex property in the save layout doesn't respect the hidden panes.
Possible work-around of this problem:

private void RadDocking_ElementLoaded ( object sender, LayoutSerializationEventArgs e )
 {
     if ( e.AffectedElement is RadPaneGroup )
     {
         var PaneGroup = e.AffectedElement as RadPaneGroup;
         var Panes = PaneGroup.EnumeratePanes().ToList();
         var SelectedIndex = PaneGroup.SelectedIndex;

         for ( int Index = 0; Index < Panes.Count; Index++ )
         {
             if ( ( Panes[ Index ].IsHidden || !Panes[ Index ].IsPinned ) && Index <= SelectedIndex )
             {
                 SelectedIndex++;
             }
         }

         PaneGroup.SelectedIndex = SelectedIndex;
     }
 }
2 comments
ADMIN
Martin Ivanov
Posted on: 07 May 2019 10:20
Hello Margret,

We can't give a concrete time frame for resolving this. I could suggest you to follow the feedback item in order to get notified as soon as there is any change in its status.

As for the workaround, this is still the way to go. However, if you have issues with it, please let me know along with some details on the issue.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Margret
Posted on: 30 Apr 2019 13:20
Is this still the recommended workaround? Any plans for a future bugfix?