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

TabControl selectedItem not showing

6 Answers 121 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nik
Top achievements
Rank 2
Nik asked on 06 Mar 2008, 01:58 AM
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

6 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 06 Mar 2008, 10:05 AM
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
0
Nik
Top achievements
Rank 2
answered on 06 Mar 2008, 02:42 PM
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
0
Boyko Markov
Telerik team
answered on 07 Mar 2008, 09:06 AM
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
0
Vassil Petev
Telerik team
answered on 23 Apr 2008, 04:24 PM
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
0
Dan
Top achievements
Rank 1
answered on 15 Nov 2008, 04:49 PM
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
0
Nikolay
Telerik team
answered on 18 Nov 2008, 04:20 PM
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.
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Nik
Top achievements
Rank 2
Answers by
Boyko Markov
Telerik team
Nik
Top achievements
Rank 2
Vassil Petev
Telerik team
Dan
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or