Hi Arvin,
Thank you for contacting Syncfusion Support.
Query : I would like to know if it is possible to add a new tab automatically by the program when the user chooses to close all tabs in the context menu.
Your requirement is to create new tab on closing all tabs using contextmenu. However, we could not able to create new tab on closing all tabs, since the Close All tabs menu is to close, so we could not create instance at that time. However, you can retain new tab when all other tabs get closed using IsNewButtonClosedonNoChild property. For more information about NewButton feature of TabControlExt, please refer the following UG:
Screenshot shows after closing all child of TabControlext, the newtab retained.
Query : Besides, there are three items in the default context menu of TabItem. Is it possible to hide one or two of them but not all of them?
You can able to show one or two menu items among default contextmenu, by editing the template of TabItemExt style. However, the menuitem will be in disabled state as shown in below screenshot.
So we suggest you to use the custom contextmenu using IsCustomTabItemContextMenuEnabled property to add your custom menu items by deleting the defaultcontextmenu using ShowTabItemContextMenu property as false. You can refer the following UG link to know more about the features of ContextMenu using the following link:
We have also attached sample for your reference.
Please try this suggestion and let us know if it is helpful.
Regards,
Vijayalakshmi VR.