开发者

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

开发者 https://www.devze.com 2023-04-01 00:13 出处:网络
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 开发者_Python百科some one mig

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 开发者_Python百科some one might have done this before.

Thanks in advance !!


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>"});
0

精彩评论

暂无评论...
验证码 换一张
取 消