Detect Docking Pane in PaneGroup

4 posts, 0 answers
  1. IT Department
    IT Department avatar
    8 posts
    Member since:
    Jul 2010

    Posted 18 Jan 2012 Link to this post

    Hello!

      I'm trying to detect when a pane (radPane1) is docked into a PaneGroup with another pane (radPane2).  I thought I could do this:

            private void radDocking1_PaneStateChange(object senderTelerik.Windows.RadRoutedEventArgs e)
            {
                var somePane = e.OriginalSource as RadPane;
                if (somePane == radPane1 && !somePane.IsFloating && radPane1.PaneGroup == radPane2.PaneGroup)
                       HandleDockEvent();
            }
    

    ...but it seems the PaneGroup is not set at this point in time, and hence that comparison fails.  How can I do this?

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 23 Jan 2012 Link to this post

    Hello,

    I am afraid this cannot be achieved with the current implementation of the Docking control. When the panes are docked a new RadPaneGroup is generated and the pane is put in it. That means that the pane that is docked actually is not in the same group as the one you want to find.

    Hope this information helps.

    Regards,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. IT Department
    IT Department avatar
    8 posts
    Member since:
    Jul 2010

    Posted 23 Jan 2012 Link to this post

    Okay, then perhaps you can address the issue I am having that provoked the question.  I would like a tab that is floated and then redocked to appear in the same order as it was originally.  By default, it always appends at the end.Can this be done?

    Docked:
    _/ 1 \_/ 2 \_/ 3 \

    Floating:
    _/ 1 \_/ 3 \

        _/ 2 \_
       |_____|

    Redocked:  What Happens:
    _/ 1 \_/ 3 \_/ 2 \

    Redocked: What I Would Like To Happen:
    _/ 1 \_/ 2 \_/ 3 \
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 Jan 2012 Link to this post

    Hi,

    Currently, this is not supported by the RadDocking control. We will consider adding such feature in one of our future release if we receive enough clients' requests.

    All the best,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top