Find The Selected Tab?

7 posts, 0 answers
  1. UIdev
    UIdev avatar
    74 posts
    Member since:
    Mar 2007

    Posted 31 Aug 2007 Link to this post

    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
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 03 Sep 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. UIdev
    UIdev avatar
    74 posts
    Member since:
    Mar 2007

    Posted 05 Sep 2007 Link to this post

    Thanks!  I got it to work perfectly.
  5. Lorenzo
    Lorenzo avatar
    17 posts
    Member since:
    Aug 2007

    Posted 12 Sep 2007 Link to this post

    And what I have to do to SET the active document and focus on it? And for dockPanel?

    Thanks for support
    Lorenzo
  6. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 13 Sep 2007 Link to this post

    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
  7. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 11 Mar 2010 Link to this post

    Hi,
    Im looking for a DocumentTab Selected event, or an event to find when the document tab changes. Is there a way?
    Thanks
  8. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 11 Mar 2010 Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready