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.

Removing "Create New Vertical/Horizontal Tab Group"

Thread ID:

Created:

Updated:

Platform:

Replies:

70638 Dec 20,2007 04:23 PM Jan 4,2008 11:10 AM Windows Forms 4
loading
Tags: Tools
Anthony Nahas
Asked On December 20, 2007 04:23 PM

How can I remove the New Vertical and Create New Horizontal Tab group from the TabbedMDIManager(when it's right clicked, it shows these 2 options)?



Sri Rajan [Syncfusion]
Replied On December 27, 2007 04:32 PM

Hi Anthony,

Please follow the below steps to remove the New Vertical Tab group and Create New Horizontal Tab group from the TabbedMDIManager.

1. Run the Browser sample for TabbedMDIManager.
2. Right click any one of the Vertical Tab header and select New Vertical Tab Group(just like create any number of vertical tab group).
3. Just drag and drop the other vertical Tab into the first one to group the Vertical Tabs.
4. Right click the First Vertical Tab Header and select New Horizontal Tab group to create a new Horizontal Tab group.

Please refer the below video cliping for more details

http://websamples.syncfusion.com/samples/Tools.Windows/F70638/clip.zip

Please refer to it and let me know if this helps.

Regards,
Srirajan





Anthony Nahas
Replied On December 29, 2007 02:22 AM

>Hi Anthony,

Please follow the below steps to remove the New Vertical Tab group and Create New Horizontal Tab group from the TabbedMDIManager.

1. Run the Browser sample for TabbedMDIManager.
2. Right click any one of the Vertical Tab header and select New Vertical Tab Group(just like create any number of vertical tab group).
3. Just drag and drop the other vertical Tab into the first one to group the Vertical Tabs.
4. Right click the First Vertical Tab Header and select New Horizontal Tab group to create a new Horizontal Tab group.

Please refer the below video cliping for more details

http://websamples.syncfusion.com/samples/Tools.Windows/F70638/clip.zip

Please refer to it and let me know if this helps.

Regards,
Srirajan






Sorry, I probably wasn't clear enough..

I need to remove that functionality altogether.
For instance, when a tab is right clicked, it shows "Create New Horizontal Tab Group, Create New Vertical Tab Group, and Close". I would like to change it so that it only has "Close" as an option. Is there a way to do this?


Jisha Joy [Syncfusion]
Replied On January 4, 2008 01:26 AM

Hi Anthony,
Thank you for your update.
If you want to show only the Close option in the ContextMenu associated with the tab header, first you have to remove all the default contextmenu item and then add the custom baritem.
Below is the code snippets:


this.tabbedMDIManager.ContextMenuItem.Items.Clear();
this.tabbedMDIManager.ContextMenuItem.Items.Add(this.barItem22);

Please refer the sample in the link to illustrate this:
http://websamples.syncfusion.com/samples/Tools.Windows/70638_1/main.htm

Kindly try this and let me know if this helps.

Regards,
Jisha


Anthony Nahas
Replied On January 4, 2008 11:10 AM

Jisha, that worked fine

Thanks for the help

>Hi Anthony,
Thank you for your update.
If you want to show only the Close option in the ContextMenu associated with the tab header, first you have to remove all the default contextmenu item and then add the custom baritem.
Below is the code snippets:


this.tabbedMDIManager.ContextMenuItem.Items.Clear();
this.tabbedMDIManager.ContextMenuItem.Items.Add(this.barItem22);

Please refer the sample in the link to illustrate this:
http://websamples.syncfusion.com/samples/Tools.Windows/70638_1/main.htm

Kindly try this and let me know if this helps.

Regards,
Jisha




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.

;