Kendo UI选项卡-每次单击都重新加载选项卡 [英] Kendo UI Tab- Reload tab every time it is clicked

查看:180
本文介绍了Kendo UI选项卡-每次单击都重新加载选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Kendo UI选项卡,每个选项卡都绑定到Ajax函数.我希望我的标签页每次更改时都触发ajax调用,以获取新鲜的内容,而不仅仅是第一次.有没有配置或推荐的方式可以实现这一目标?

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?

推荐答案

您好可以通过TabStrip的 reload 方法轻松实现.

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

这篇关于Kendo UI选项卡-每次单击都重新加载选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆