Kendo UI : Tabstrip content should redirect to another View in the same Tabstrip on button Click

ぐ巨炮叔叔 提交于 2019-12-25 07:01:30

问题


I have a Tabstrip and in the content of that Tabstrip , I have a button. So when I click on the button it will redirect to the other page. But is there any way to make it just redirect in the content of the same Tabstrip?

** This question has been asked earlier but nobody answered,Can someone help me please !! Im stuck !!.

Thanks!


回答1:


You can override the default behavior of a Kendo tabstrip link by adding a custom handler to the tab strip's "select" event.

$("#tabStrip").kendoTabStrip({
    select: function(event) {
        // Detect if this is a case where override is needed
        event.preventDefault(); 
        // Navigate to the desired content
    }
});

http://docs.telerik.com/kendo-ui/api/javascript/ui/tabstrip



来源:https://stackoverflow.com/questions/36182430/kendo-ui-tabstrip-content-should-redirect-to-another-view-in-the-same-tabstrip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!