Add remove button and editing to customized TabControleItems

Hello 

I have made used of a heavily customized TabControleExt I found online. I want a remove button on the right side of the TabItems so that a user can remove the tab if needed. But with all the modifications made to the Element the CloseButtonType property no longer shows a close button on the TabItem.



I want the close button to appear to the right of each Tab item like so:


 I Furthermore want to user to be able to double click on a Item to ender edit mode in which the user will be able to change the Title of any of the Items. Like the functionality of the default control but I want the look of this one. 


Thanks


Attachment: TabControleExample_d6be2f7d.zip

3 Replies 1 reply marked as answer

SN Sudharsan Narayanan Syncfusion Team March 8, 2022 04:01 AM UTC

Hi Gerrit,

Sorry for the delay,

You can be able to achieve the “Add close button and label edit” requirement by customizing the Style and enabling the EnableLabelEdit and set the CloseButtonType. We have modified your sample to achieve the requirement. So, please find the modified sample from the below,

Sample: https://www.syncfusion.com/downloads/support/forum/173338/ze/TabControleExampleModified806034144

Please check the above sample and let us know your concerns. We are happy to assist you.

Regards,
Sudharsan


Marked as answer

GE Gerrit March 9, 2022 04:22 PM UTC

This is exactly what I wanted thanks 



SN Sudharsan Narayanan Syncfusion Team March 10, 2022 07:53 AM UTC

Hi Gerrit,

We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Regards,
Sudharsan


Loader.
Up arrow icon