RB
Rajasekar B
Syncfusion Team
March 12, 2010 03:29 PM UTC
Hi Sakkath,
Thanks for your interest in syncfusion product.
If you use this.tabBarSplitterControl1.TabBarPages.Remove(this.tabBarPage1), tabpage will only be removed from the collection and you can insert it whenever necessary using the below code
this.tabBarSplitterControl1.TabBarPages.Insert(0,this.tabBarPage1);
You can reuse that tabbarpage. Do you want the tabpage to be hidden but it should not be removed from the TabBarPages collection?
Thanks,
Rajasekar
AD
Administrator
Syncfusion Team
March 22, 2010 09:59 AM UTC
Thanks for the reply.
Yes, I was trying to hide the sheet without removing from the collection.
E.g. I still want to process the sheet if it's hidden, but want the user to be able to hide it.
I could use two collections - one containing all pages, and another just those that are visible, but that seems like overkill. The other overhead with your method is remembering in what position the hidden pages should be added back in.
Ideally for me, setting visible to false, or calling hide(), should just skip the tab when drawing the control.
Am I stuck with the two collection solution for now?
Thanks
RB
Rajasekar B
Syncfusion Team
March 23, 2010 03:18 PM UTC
Hi Sakkath,
Thanks for the update.
You can use the following line of code to hide the tab:
this.tabBarSplitterControl1.Bar.Tabs[i].HideButton = true;
To get the index of the particular tab, you can use the below line of code:
int i= this.tabBarSplitterControl1.TabBarPages.IndexOf(this.tabBarPage1);
Please let me know if you have any question.
Thanks,
Rajasekar
AD
Administrator
Syncfusion Team
April 21, 2010 08:00 AM UTC
Hi Rajasekar
Thanks for the suggestion - it's been a while, I got caught up on other things...
The HideButton method certainly hides the button, but it isn't removed from the OnPaint, so it just leaves a big gap in the control.
Any way around that? I just want something like Excel where you can Hide/Show sheets, but preferably without having to actually remove/insert pages from the collection
Thanks
RC
Rajadurai C
Syncfusion Team
April 23, 2010 09:35 AM UTC
Hi Sakkath,
Thanks for your update.
With TabBarSplitterControl, currently we don't provide support to hide the tabbarpages. However, we have logged a feature request for the same.
We will implement this feature in our forthcoming new version releases or service pack releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity.
Thank you for using Syncfusion Products.
Regards,
Rajadurai