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

Removing "Create New Vertical/Horizontal Tab Group"

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)?



4 Replies

SR Sri Rajan Syncfusion Team December 27, 2007 09:32 PM UTC

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






AN Anthony Nahas December 29, 2007 07:22 AM UTC

>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?



JJ Jisha Joy Syncfusion Team January 4, 2008 06:26 AM UTC

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



AN Anthony Nahas January 4, 2008 04:10 PM UTC

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




Loader.
Live Chat Icon For mobile
Up arrow icon