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.
Unfortunately, activation email could not send to your email. Please try again.

A missing TabPage on a TabContol ....

Thread ID:

Created:

Updated:

Platform:

Replies:

18641 Sep 5,2004 10:58 PM Sep 12,2004 03:29 AM General Discussion 5
loading
Tags: General Discussion
Administrator [Syncfusion]
Asked On September 5, 2004 10:58 PM

Hi, I use a TabControlAdv and I need to Hide and Show a certain TabPageAdv, so I use the TabPageAdv.TabVisible = true/false. My problem is this: when I try to show the page again, it''s label is missing. There is no way to reach the page with the mouse. It is, however, possible to reach the page with the keyboard, so I know the page is there. Is there a way to cause the TabControlAdv to create the label again ? is it a bug ? As a workaround, I remove and add the page, and that works.

Administrator [Syncfusion]
Replied On September 5, 2004 11:01 PM

I forgot to say "Thanks ..." kagan

Administrator [Syncfusion]
Replied On September 7, 2004 10:15 AM

Hi Kagan, While hiding a TabPageAdv you should first set its TabVisible property to false and then set the next TabPageAdv as the TabControlAdv''s SelectedTab if the hidden TabPageAdv was the SelectedTab. Please refer to the sample that illustrates this and let me know if you need further assistance. Also note that this sample was created using Essential Suite v2.1.0.9. Let me know if you are using an earlier version. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On September 8, 2004 06:09 AM

Thanks. It took us some time but we finally got to the buttom of it: If you set the - TabControlAdv.Multiline = true then once you hide the tab, you can''t reShow it correctly. I added this single line to your sample and got the same result. Any ideas ? kagan

Administrator [Syncfusion]
Replied On September 10, 2004 07:23 AM

Hi Kagan, Thanks for the update. I do see this problem here when the TabControlAdv is in MultiLine mode, and have notified the development team in this regard. For now you could use the following workaround. // Handle the button''s Click event as shown below bool flag = false; private void button1_Click(object sender, System.EventArgs e) { if (flag == false) { if (this.tabControlAdv1.Multiline == true) { this.tabControlAdv1.Multiline = false; if (this.tabControlAdv1.SelectedTab == this.tabPageAdv2) this.tabControlAdv1.SelectedTab = this.tabPageAdv3; this.tabPageAdv2.TabVisible = flag; this.tabControlAdv1.Multiline = true; } } else { this.tabControlAdv1.Multiline = false; this.tabPageAdv2.TabVisible = flag; this.tabControlAdv1.Multiline = true; } flag = !flag; } The complete sample illustrating this workaround is attached here. Please refer to it and let me know if this works for you. We appreciate your feedback. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On September 12, 2004 03:29 AM

Your workaround works fine. Is it any better than removing and adding the tabPage ? (instead of Hide/Show) By the way, the multiLine manipulation is only needed when changing the TabVisible back to true. There is no need to change it to singleLine and back when setting it to false. Thank you for your help. I''ll be waiting for the fix ... :) kagan.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;