TabControl selectedItem not showing

7 posts, 0 answers
  1. Nik
    Nik avatar
    2 posts
    Member since:
    Mar 2008

    Posted 05 Mar 2008 Link to this post

    Hi,
    I was hoping that when I select a tab using the overflow drop down it would select the tab in the first position (0) as described in the post (Unexpected behavior when using overflow button). However, this is not happening and the tab that is selected is not visible at all.  Is there a way to get this to work? 
    Thanks,
    Nik
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 06 Mar 2008 Link to this post

    Hello Nik,

    I agree with you. We will consider scrolling into view to be the default behavior of the overflow. You can use the alternative overflow behavior, which could be activated using the following syntax:

    this.radTabStrip2.TabStripElement.TabStripOverFlowBehavior = Telerik.WinControls.UI.TabStrip.OverFlowBehavior.BringIntoView;

    I hope this helps. If you have any other questions please write me back.

    Sincerely yours,
    Boyko Markov
    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. Nik
    Nik avatar
    2 posts
    Member since:
    Mar 2008

    Posted 06 Mar 2008 Link to this post

    Thanks!

    I am still having one more issue.  When I set a tab to be selected, 

     foreach (TabItem t in this.mainTabControl.Items)
                {
                    if (t.Tag == cc)
                    {
                        this.mainTabControl.SelectedTab = t;
                        alreadyOpen = true;
                        
                    }
                }

    If the tab is off the screen it is not brought into view.  I have tried Focus() and that does not work.  Is there a way to bring the selected tab into view?

    Thanks,
    Nik
  5. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 07 Mar 2008 Link to this post

    Hi Nik,

    Indeed if the tab is not in view you won't see it, even if it is selected. We don't have a metod which will bring the tab into view, but I can assure you that we will have it for the next version of the control.

    Thank you very much about your valuable feedback. Please feel free to write me back if you have any additional issues.

    All the best,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 23 Apr 2008 Link to this post

    Hello Nik,

    This is a quick followup.

    Unfortunately, we did not have time to implement this feature for the latest Q1 2008 release. The feature is still on our ToDo list and we will do our best to include it as soon as possible.

    Sorry if this brings you inconvenience.


    Kind regards,
    Vassil
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Dan
    Dan avatar
    6 posts
    Member since:
    Jul 2008

    Posted 15 Nov 2008 Link to this post

    Has this functioanlity been added yet?  If so in what version did it first appear?  This is a huge issue for us since we have an IE 7 type dynamic tab strip at the heart of our application.  Currently when the user opens new tabs when the screen is already full they appear off screen and they have to manually scroll to them.  Not good at all!

    Thanks
  8. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 18 Nov 2008 Link to this post

    Hello Dan,

    As you have noticed in this forum post, the desired feature is already implemented (introduced in Q1 2008) and you can show a tab that is not currently into view:
    Me.RadTabStrip1.TabStripElement.ScrollIntoView(CType(Me.RadTabStrip1.Items(Me.RadTabStrip1.Items.Count - 1), TabItem))     
    CType(Me.RadTabStrip1.Items(Me.RadTabStrip1.Items.Count - 1), TabItem).IsSelected = True 

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

    Sincerely yours,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for WinForms is Visual Studio 2017 Ready