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 - TabPage close events

Hi -
I am using the TabControlAdv in version 5.2.0.25. I am showing the close button and need know when a user closes a tab page. Where is the tabpageclosing or tabpageclosed event?
Thanks,
Julie


7 Replies

AD Administrator Syncfusion Team April 20, 2008 03:32 PM UTC

Hi Julie,

Thank you for your interest in Syncfusion products.

TabClosing event

The ControlRemoved event of TabControlAdv is fired, when tabPage is being closed using the tab close button. Please refer to the code below for more details.

[C#]

this.tabControlAdv1.ControlRemoved += new ControlEventHandler(tabControlAdv1_ControlRemoved);

void tabControlAdv1_ControlRemoved(object sender, ControlEventArgs e)
{
}

Please let me know if this helps you.

Regards,
Jaya



A. a.b May 28, 2008 02:50 AM UTC

Hi,

I am using the closebutton on the active tab:
this.tabControl.ShowCloseButtonForActiveTabOnly = true;

Is there an event that's triggered *BEFORE* the tab is actually removed by clicking on the CloseButton?

Thanks




MJ Mano J Syncfusion Team May 28, 2008 08:48 AM UTC

Hi Sean,

If you are using Essential Studio 6.2.0.40 or higher version, you can use TabPageAdv's Closing and Closed events.


this.tabPageAdv1.Closing += new TabPageAdvClosingEventHandler(this.tabPageAdv1_Closing);
this.tabPageAdv1.Closed += new System.EventHandler(this.tabPageAdv1_Closed);

private void tabPageAdv1_Closing(object sender, TabPageAdvClosingEventArgs args)
{
...
}

private void tabPageAdv1_Closed(object sender, EventArgs e)
{
...
}





A. a.b May 29, 2008 01:21 AM UTC

Thank you for your response.

Is there a way to achieve this in
SyncFusion-6.1.0.34 ?

Thanks again



MJ Mano J Syncfusion Team May 29, 2008 11:55 AM UTC

Hi Sean,

You can't achieve it in 6.1. But if you need these events in 6.1 itself, we can provide a private patch including these events in it.

Please create a Direct-Trac incident stating this forum id in it for the patch.

Regards,
Mano



SK Santhosh Kumar January 8, 2013 01:35 PM UTC

Hello,

I am using V7 of the syncfusion
By setting the this.tabControl.ShowCloseButtonForActiveTabOnly = true; all active tab pages will have the close button.
Is there a way not to show the close button for some tab pages.

Thanks for answers



PA Paul Anderson S Syncfusion Team January 10, 2013 07:38 AM UTC

Hi Santhosh ,

Thanks for your update.

TabControlAdv individual TabPage ShowCloseButton feature available  in 10.1.0.44 onwards. You can achieve your requirement by upgrading to  Essential Studio new version.

Please let us know if you need any other details.

Regards ,

Paul Anderson


Loader.
Live Chat Icon For mobile
Up arrow icon