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

Find The Selected Tab?

6 Answers 247 Views
Dock
This is a migrated thread and some comments may be shown as answers.
UIdev
Top achievements
Rank 1
UIdev asked on 01 Sep 2007, 02:53 AM
Hi,
    
I have a series of DockPanels arranged so that some are aligned on the sides, and some are in a tabbed layout along the center top like open documents in Visual Studio.  Is there any way to determine the selected tab (or last selected tab) and not one of the side windows?  This is a major part of my application, and I really want to figure it out.

Thanks,

UIDev

6 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 03 Sep 2007, 04:59 PM
Hello David,

Try to use  theActiveDocument property of DockingManager. Another approach is to get the Documents collection in DockingManager and check which DocumentPane is visible. 

I hope this helps.

 
All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
UIdev
Top achievements
Rank 1
answered on 05 Sep 2007, 10:37 PM
Thanks!  I got it to work perfectly.
0
Lorenzo
Top achievements
Rank 1
answered on 12 Sep 2007, 01:59 PM
And what I have to do to SET the active document and focus on it? And for dockPanel?

Thanks for support
Lorenzo
0
Julian Benkov
Telerik team
answered on 13 Sep 2007, 05:02 PM
Hi Lorenzo,

To activate your document you should set the ActiveDocument property of the DockingManager. To activate the DockPanel you must call it's Activate() function.

I hope this was helpful.


Greetings,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Richard Slade
Top achievements
Rank 2
answered on 11 Mar 2010, 03:03 PM
Hi,
Im looking for a DocumentTab Selected event, or an event to find when the document tab changes. Is there a way?
Thanks
0
Nikolay
Telerik team
answered on 11 Mar 2010, 03:13 PM
Hi Richard Slade,

Please refer to the following forum thread: http://www.telerik.com/community/forums/winforms/dock/how-to-trap-selected-document-change.aspx

Regards,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Dock
Asked by
UIdev
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
UIdev
Top achievements
Rank 1
Lorenzo
Top achievements
Rank 1
Richard Slade
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or