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
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!
Thus I will be able to know which one is active or not.
regards,
s
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.
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!
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
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.
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!