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

Default Tab

4 Answers 281 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
seedy
Top achievements
Rank 2
seedy asked on 07 May 2007, 08:45 PM
I must be missing something obvious, but I cant seem to find a way to set which tab is defaulted at startup.

4 Answers, 1 is accepted

Sort by
0
Johan
Top achievements
Rank 1
answered on 08 May 2007, 06:45 AM
Upon form loading, you can use something similar to this:

radRibbonBar1.RibbonBarElement.TabStripElement.SelectedTab = radRibbonBar1.RibbonBarElement.TabStripElement.Items[0];

or this

TabItem item = radRibbonBar1.RibbonBarElement.TabStripElement.Items[1] as TabItem;
item.IsSelected = true;

I have also not found the way to do this at design time (could not located the IsSelected property in the PropertyGrid per TabItem)
0
Jordan
Telerik team
answered on 08 May 2007, 07:51 AM
Hello Corey,

Selecting a tab can be done even easier like:

this.radRibbonBar1.RibbonBarElement.TabStripElement.SelectedTab = this.tabItem1;

All the best,

Jordan
the telerik team


Instantly find answers to your questions at the new Telerik Support Center
0
seedy
Top achievements
Rank 2
answered on 08 May 2007, 12:34 PM
Ok I'll give those a try, although my problem seems to have disappeared for now. 

What I was seeing was that after I had created a second and third tab, it was actually the second tab that was opened by default, without me having any code in place doing so.  I just launched it this morning, and it looks like the first tab is defaulting now, so im not sure what happened there.

thanks
0
Dwight
Telerik team
answered on 08 May 2007, 01:09 PM
Hello Seedy,

The problem you experienced might be due to problems with the Visual Studio Design Time environment and you can try to solve them by restarting the VS.NET environment. If you have experienced any other similar problems don't hesitate to write us further.

Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
RibbonBar
Asked by
seedy
Top achievements
Rank 2
Answers by
Johan
Top achievements
Rank 1
Jordan
Telerik team
seedy
Top achievements
Rank 2
Dwight
Telerik team
Share this question
or