Hi all,
I have following function in asp.net AJAX application. Function is fired by timer (30 sec interval) and it loops all tabs. Now I wonder if this is possible to implement with KendoUI?
Current implementation in ASP.NET AJAX:
function SelectTab()
{
var tabstrip = $find("tabstrip1");
var nextIndex = (tabstrip.get_selectedIndex() + 1)
if (nextIndex >= tabstrip.get_tabs().get_count()) nextIndex = 0;
tabstrip.set_selectedIndex(nextIndex);
}
I have tried something like this:
var tabstrip = $("#tabstrip").kendoTabStrip;
var selectedIndex = tabstrip.select().index();
var nextIndex = selectedIndex + 1;
//HOW TO FIND OUT IF SELECTED TAB IS LAST ONE?
//HOW TO SELECT TAB BY INDEX?
Any ideas?
BR
Marko
I have following function in asp.net AJAX application. Function is fired by timer (30 sec interval) and it loops all tabs. Now I wonder if this is possible to implement with KendoUI?
Current implementation in ASP.NET AJAX:
function SelectTab()
{
var tabstrip = $find("tabstrip1");
var nextIndex = (tabstrip.get_selectedIndex() + 1)
if (nextIndex >= tabstrip.get_tabs().get_count()) nextIndex = 0;
tabstrip.set_selectedIndex(nextIndex);
}
I have tried something like this:
var tabstrip = $("#tabstrip").kendoTabStrip;
var selectedIndex = tabstrip.select().index();
var nextIndex = selectedIndex + 1;
//HOW TO FIND OUT IF SELECTED TAB IS LAST ONE?
//HOW TO SELECT TAB BY INDEX?
Any ideas?
BR
Marko