We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

tabBarSplitterControl programatically select tabs.


I am using the tabBarSplitterControl in my application. i want to be able to programatically select a certain tab. I am using the following code, but It does not work all the time .

What do i need to change ?

for (int i = 0; i < this.tabBarSplitterControl1.TabBarPages.Count; i++)
{
if (this.tabBarSplitterControl1.TabBarPages[i].Name.Equals(colName))
{
this.tabBarSplitterControl1.TabBarPages[i].Show();
this.tabBarSplitterControl1.Bar.TabBarChild.Tabs[i].Pushed = true;
}
else
{
this.tabBarSplitterControl1.Bar.TabBarChild.Tabs[i].Pushed = false;
}
}

1 Reply

AD Administrator Syncfusion Team July 25, 2007 10:18 AM UTC

Hi Jogesh,

Thank you for your details.

You can set the active page member to select a certain tab.



this.tabBarSplitterControl1.ActivePage = this.tabBarSplitterControl1.TabBarPages[0];



Please refer the sample in the below link and let us know if this helps.
http://websamples.syncfusion.com/samples/Tools.Windows/F64946/main.htm

Best Regards,
Jeba.

Loader.
Live Chat Icon For mobile
Up arrow icon