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.
Syncfusion Feedback

TabControlAdv - TabPage close events

Thread ID:

Created:

Updated:

Platform:

Replies:

73010 Apr 15,2008 11:30 PM UTC Jan 10,2013 07:38 AM UTC Windows Forms 7
loading
Tags: Tools
Julie Levy
Asked On April 15, 2008 11:30 PM UTC

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


Administrator [Syncfusion]
Replied On 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.b
Replied On 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



Mano J [Syncfusion]
Replied On 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.b
Replied On 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


Mano J [Syncfusion]
Replied On 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


Santhosh Kumar
Replied On 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


Paul Anderson S [Syncfusion]
Replied On 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


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.

Warning Icon 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.Close Icon

;