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

Bring a specifc rad pane into focus when using RadPaneGroupRegionAdapter

1 Answer 117 Views
Docking
This is a migrated thread and some comments may be shown as answers.
YK
Top achievements
Rank 1
YK asked on 03 Jun 2013, 10:28 PM

Hi,
In the application we are developing we have a Raddocking control which hosts a RadSplitContainer, inside of which is a RadPaneGroup. This RadPaneGroup acts a region. RadPaneGroupRegionAdapter is used to add panes to the target (which is a RadPaneGroup in this case). Below is the adding logic that is being used. The problem is that I have to bring the first rad pane into focus. Is there a way to that. Right now whenever a new pane is added the focus shifts to the newly added pane.
Appreciate any pointers
Thanks
YK

region.Views.CollectionChanged += (s, e) =>
           {
               switch (e.Action)
               {
                   case NotifyCollectionChangedAction.Add:
                       foreach (var i in e.NewItems)
                       {
                           if (i is RadPane)
                           {
                               (i as RadPane).CanUserClose = true;                               
                               target.Items.Add(i);
                                
                               continue;
                           }
                        }
                   }
              }

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 06 Jun 2013, 08:09 AM
Hello Yateesh,

In order to bring a specific Pane on focus you should use ActivePane property of the Docking control. Please see the following example:

this.radDocking.ActivePane = pane3;

Hope this helps.

Regards,
Kalin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
YK
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or