Change Selected Pane in codebehind

3 posts, 0 answers
  1. Stephan
    Stephan avatar
    4 posts
    Member since:
    Apr 2013

    Posted 17 May 2013 Link to this post

    We have the following View structure:

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

    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?

  2. Kalin
    Kalin avatar
    1283 posts

    Posted 21 May 2013 Link to this post

    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;

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Stephan
    Stephan avatar
    4 posts
    Member since:
    Apr 2013

    Posted 22 May 2013 Link to this post

    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.

Back to Top