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

Get the active element

5 Answers 87 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 19 Jul 2011, 05:44 PM
Hi,

How can I now the active element (window/pane) in my RadDocking control?

I tried to use the SelectedItem from the RadPaneGroup to know which pane is selected but when the RadPane is undocked, the SelecteItem property is set to null and I do not know which element is active.

Regards,
S

5 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 22 Jul 2011, 12:07 PM
Hello Steven,

Since Q2 2011 there is a property of the RadPane called IsActive, which shows whether the Pane is active or not. You can use it, instead of the SelectedItem.

Hope this helps.

Kind regards,
Konstantina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Steven
Top achievements
Rank 1
answered on 27 Jul 2011, 01:19 PM
How Can I get all the items in my dockingControl ?
Thus I will be able to know which one is active or not.

regards,
s
0
George
Telerik team
answered on 28 Jul 2011, 07:47 AM
Hi Steven,

 
With the current Q2 release we introduced the RadDocking.ActivePane, RadPane.IsActive properties and the RadDocking.ActivePaneChanged event. If you want to get the current active pane for the RadDocking control, I would suggest using the RadDocking.ActivePane property. Anyway, if you want to get all the panes for the RadDocking control, you could use the RadDocking.Panes property.

Hope this helps.

Regards,
George
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Steven
Top achievements
Rank 1
answered on 28 Jul 2011, 09:37 AM
Thanks geore, that was the answer I expected ;)

Regading the RadDocking.Panes, is there a way to bind it to a collection in my VM ?
I could not find the property in the xaml.

Regards,
S
0
George
Telerik team
answered on 28 Jul 2011, 11:06 AM
Hello Steven,

 
We don't support binding a collection of RadPanes to the RadDocking control out of the box. However, you could achieve the same functionality using some extensions (attached properties). We have a basic example that shows how to use the RadDocking control with the MVVM pattern. Attached you can find the sample. Please, note that the example is for WPF, but it shares the same code for Silverlight as well.

Hope this helps.

All the best,
George
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Docking
Asked by
Steven
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Steven
Top achievements
Rank 1
George
Telerik team
Share this question
or