You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a collection of items representing separate tabs. I am iterating through that collection to render a tab for each item as shown [here](slug:tabstrip-tabs-collection). I want to allow the user to add and remove tabs, how to achieve that?
27
+
I have a collection of items representing separate tabs. I am iterating through that collection to render a tab for each item as shown in the [Tabs Collection article](slug:tabstrip-tabs-collection). I want to allow the user to add and remove tabs. How to achieve that?
28
28
29
-
This KB article answers the following questions:
29
+
This KB article also answers the following questions:
30
30
31
-
* How to remove a tab with a "X" button in the tab header?
32
-
* How to use a button to add tabs and position this button next to the last tab header (similar to the "+" button in the browser)?
31
+
* How to implement add and remove tab functionality with the Telerik TabStrip component.
32
+
* How to remove a tab using an "X" button in the tab header.
33
+
* How to add a new tab with a "+" button, similar to browser tab controls.
34
+
* How to position the add ("+") button next to the last tab header.
33
35
34
36
## Solution
35
37
36
-
The example below shows how to:
37
-
* Use a [`HeaderTemplate`](slug:tabstrip-header-template) for the tab to add a button that removes the tab.
38
-
* Conditionally display the "X" button based on the tabs' count.
39
-
* Declare a button for adding tabs.
38
+
* Use a [`HeaderTemplate`](slug:tabstrip-header-template) for the tab to add an "X" button.
39
+
* Display the "X" button only when there is more than one tab.
40
+
* Declare a "+" button for adding tabs.
40
41
* Use custom styling and JavaScript to position the "+" button next to the last tab header.
0 commit comments