Koder
Koder

Reputation: 1

Adding a new tab using client side API in Telerik MVC TabStrip control

Does anyone know how to add a tab in Telerik's MVC TabStrip using Client Side API ? There is nothing in documentation and no code in tabstrip javascript too. I am hoping some one might have done this before.

Thanks in advance !!

Upvotes: 0

Views: 644

Answers (1)

Koder
Koder

Reputation: 1914

After googling a lot , i got this post. It solved my problem of adding new tab using client API. you will have to download telerik.extensions.js and register it in _layout.cshtml and then just call addTab on your tabstrip instance like this:

$("#customerTabs").data("tTabStrip").addTab({ text: 'customer #' + custId, html: "<div>some customer</div>"});

Upvotes: 1

Related Questions