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

Detect Docking Pane in PaneGroup

3 Answers 50 Views
Docking
This is a migrated thread and some comments may be shown as answers.
IT Department
Top achievements
Rank 1
IT Department asked on 18 Jan 2012, 06:24 PM
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?

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 23 Jan 2012, 08:48 AM
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 >>
0
IT Department
Top achievements
Rank 1
answered on 23 Jan 2012, 07:00 PM
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 \
0
Konstantina
Telerik team
answered on 25 Jan 2012, 10:06 AM
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 >>
Tags
Docking
Asked by
IT Department
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
IT Department
Top achievements
Rank 1
Share this question
or