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

TabControlAdv ShowTabCloseButton

We are developing an application that uses TabControlAdv. We want to show the close button on every tab to allow the user to close a page even if that page is not the currently active page, i.e. it does not have the focus.

An example of this functionality can be seen in Visual Studio 2010 as well as many browsers. However, we are seeing that when you hover over the close button of a non-active page, the close button does not appear to be active. Clicking on the 'x' just causes the control to switch to that page. Is there a way to close a page that is not currently the active page? If not, what is the purpose of having a close button on every page?

We are currently using Syncfusion 9.3.0.61 and running Windows XP.

Thanks in advance for your help.

Chris



1 Reply

RR Rajasekar R Syncfusion Team January 9, 2012 01:58 PM UTC

Hi Chris,

Thanks for your interest with Syncfusion products.

By using the following properties of the TabControlAdv we can set the close button for the Active tab.

[Code Snippets]

this.tabControlAdv1.ShowCloseButtonForActiveTabOnly = true;

this.tabControlAdv1.ShowTabCloseButton = true;

And also here I have attached the sample for your reference.

http://www.syncfusion.com/downloads/Support/DirectTrac/88951/TabControlAdv865677741.zip

Please have a look at the above sample and let us know if you have any concerns.

Regards,
Rajasekar R.


Loader.
Live Chat Icon For mobile
Up arrow icon