Get the active element

6 posts, 0 answers
  1. Steven
    Steven avatar
    35 posts
    Member since:
    Apr 2011

    Posted 19 Jul 2011 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 22 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Steven
    Steven avatar
    35 posts
    Member since:
    Apr 2011

    Posted 27 Jul 2011 Link to this post

    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
  5. George
    Admin
    George avatar
    1332 posts

    Posted 28 Jul 2011 Link to this post

    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!

  6. Steven
    Steven avatar
    35 posts
    Member since:
    Apr 2011

    Posted 28 Jul 2011 Link to this post

    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
  7. George
    Admin
    George avatar
    1332 posts

    Posted 28 Jul 2011 Link to this post

    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!

Back to Top
DevCraft banner