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

How to add new Tab and content

1 Answer 314 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 24 Sep 2011, 08:34 PM
Hello, kendo-Team. I don't know if i missed something, but how do i add new tab and some content in it?
Demo page explains how to create a tab only...without any content.....

1.tabStrip.append({
2.   text: "new Tab"
3.});

Is there a way to add some content at this way ?
Of course, it is solvable with jquery:
01....
02.tabStrip.append({
03.    text: "new Tab"
04.});
05.var $tabContent = $("<p>",
06.    {
07.        html: $("<div>",
08.            {
09.                text: "Lorem Ipsum"
10.            })
11.    });
12.$('.t-content:last').html($tabContent);
...but it would be very nice if there were a "content" property wich could be passed to the append-method

something like...
1.tabStrip.append({
2.    text: "new Tab",
3.    content : "Lorem Ipsum"
4.    // or <span>some HTML as string</span>
5.    // or $jqueryElement created via $()
6.    // or "some-link.to/a-remote-page.html"
7.});

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 26 Sep 2011, 07:39 AM
Hi Vladimir,

Thank you for the suggestion. However, the feature was already implemented and will be available with the next beta, check this thread for more information about it.

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