J.W.
J.W.

Reputation: 18181

Kendo UI Tab- Reload tab every time it is clicked

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?

Upvotes: 1

Views: 8544

Answers (1)

Petur Subev
Petur Subev

Reputation: 20203

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

Upvotes: 6

Related Questions