Kendo UI Tab- Reload tab every time it is clicked

一世执手 提交于 2019-12-08 08:29:58

问题


I have a kendo UI tab, and each tab is binding to an Ajax function. I want my tab to fire ajax call to get fresh content every time the tab is changed, not just the first time. Is there a configuration or recommended way that I can achieve this?


回答1:


Hello this could be easily through the reload method of the TabStrip.

var ts = $(tabstrip).data().kendoTabStrip
ts.tabGroup.on('click','li',function(e){        
    ts.reload($(this));
})


来源:https://stackoverflow.com/questions/16067258/kendo-ui-tab-reload-tab-every-time-it-is-clicked

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