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

Change Selected Pane in codebehind

2 Answers 363 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 1
Stephan asked on 17 May 2013, 01:41 PM
Hello
We have the following View structure:

  <RadDocking x:Name="_radDocking" RadDocking.SerializationTag="_radDocking">
    <RadDocking.DocumentHost>
      <telerik:RadSplitContainer x:Name="_splitContainer" RadDocking.SerializationTag="_splitContainer" InitialPosition="DockedTop">
        <telerik:RadPaneGroup x:Name="_contentArea" RadDocking.SerializationTag="_contentArea" IsContentPreserved="True" >
        </telerik:RadPaneGroup>
      </telerik:RadSplitContainer>
    </RadDocking.DocumentHost>
  </RadDocking>


Inside code behind we add  some RadPane to the PaneGroup. This works good.


Now we have the requirement to change the selected Pane in the case they are "groupped" after 2s. User should see each pane without a click.

In the case we have 4 RadPane:
Pane1 - Pane2 - Pane3 - Pane4 - Pane1 - Pane2 .....

The timer is not the problem. But how can I set the RadPane with should have focus inside codebehind?

Thanks

2 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 21 May 2013, 11:34 AM
Hello Steve,

I would suggest that you use the ActivePane property of RadDocking, which will help you set one of the panes on focus as required.

Please see the following example:
this._radDocking.ActivePane = pane2;

Regards,
Kalin
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Stephan
Top achievements
Rank 1
answered on 22 May 2013, 08:50 PM
Thanks for you support. I had once this solution but it didn't run and didn't know why. Now I found now that is was a threading problem.
With dispatcher.invoke it works.

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