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

Toolwindow and DocumentWindows : How to get the active one ?

1 Answer 315 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Llorens Mathieu
Top achievements
Rank 1
Llorens Mathieu asked on 22 Oct 2009, 01:43 PM
I have a dock component with a Toolwindow on the left (classical case) and a maximum of 4 documentWindows which are created on demand (A "new" button in the ribbon bar).

So, I can clic on DocumentWidows to select one of them and do some action in the toolwindow (select a date for example) to refresh the content of the selected DocumentWindow.

My problem is : How can I get the active documentWindow?

I've tried MyDock.ActiveWindow but it constantly return the ToolWindow because when in clic on the controls inside my toolWindow, it activate it.

What is the "best practice" to do what I want?

Thank you

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 22 Oct 2009, 02:31 PM
Hi Llorens Mathieu,

You can get the currently active document window from the document windows that are parented in your instance of RadDock by using the ActiveDocument property of DocumentManager:
this.radDock1.DocumentManager.ActiveDocument

If you have additional questions, feel free to contact me.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
Llorens Mathieu
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or