This is a migrated thread and some comments may be shown as answers.

Tab appended dynamically with close icon.

1 Answer 239 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 09 Jul 2014, 10:19 AM
Hi, 

I was wondering if it is possible to have in a tab created dynamically a close (X) icon and having a click event registered to it so when detected to fire remove() method and remove the specific tab from the tabstrip?
I imagine it similar to the tabs of Chrome or FireFox browsers.

I hope it's clear what I describe here.

Thanks!

George Panagopoulos

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 11 Jul 2014, 07:56 AM
Hello George,

You can use the tab option encoded: false to render HTML inside the tab. Check this demo how to easily use this HTML to make a close button (though you will need to style it accordingly).

Regards,
Kamen Bundev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TabStrip
Asked by
George
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or