[Solved] Tabstrip append not showing content

1 Answer 16 Views
TabStrip
Todor
Top achievements
Rank 1
Todor asked on 06 Mar 2026, 01:14 PM | edited on 06 Mar 2026, 01:38 PM

Append not showing tab content and throws when you try to select by index. Version 2024.3.1015

 

<div class="row" id="managing-directors-tab-strip"></div>
            const tabStrip = $("#managing-directors-tab-strip", container).kendoTabStrip({
                animation: false
            }).data("kendoTabStrip");

            tabStrip.append({ text: "Tab 1", content: "<text>111</text>" });
            tabStrip.select(index);


Uncaught TypeError: Cannot read properties of undefined (reading 'id')
    at init.contentElement (kendo.tabstrip.js:621:71)
    at init.contentHolder (kendo.tabstrip.js:631:41)
    at init._click (kendo.tabstrip.js:984:38)
    at init._itemClick (kendo.tabstrip.js:1208:22)
    at HTMLUListElement.dispatch (event.js:335:27)
    at elemData.handle (event.js:139:28)



Todor
Top achievements
Rank 1
commented on 07 Mar 2026, 06:09 PM | edited

It turns out that this bug was caused by not license version which inserts extra tab content with the real 'id'. If you have license works fine.
Eyup
Telerik team
commented on 11 Mar 2026, 05:15 AM

Good to hear that, thanks for sharing!

Let us know if it happens when license is enabled.

1 Answer, 1 is accepted

Sort by
0
William
Top achievements
Rank 1
answered on 11 Mar 2026, 11:55 AM

It looks like the issue might be related to the content markup you're appending. In Kendo UI, the content field usually expects valid HTML elements, and <text> isn’t a standard HTML tag, which can sometimes cause the TabStrip to fail when it tries to create the content container.

Try replacing it with something like:

tabStrip.append({
    text: "Tab 1",
    content: "<div>111</div>"
});

Also make sure the tab exists before calling select(index). Sometimes after append() the DOM update hasn’t been processed yet, so selecting immediately by index can fail. A quick test is:

tabStrip.append({ text: "Tab 1", content: "<div>111</div>" });
tabStrip.select(tabStrip.items().length - 1);

If that works, then the issue was likely either the invalid <text> element or selecting an index that doesn’t exist yet.

Tags
TabStrip
Asked by
Todor
Top achievements
Rank 1
Answers by
William
Top achievements
Rank 1
Share this question
or