2013-06-12 63 views
0

這就是我想要完成的。如何使用tabGroup.find()從kendo tabstrip獲取索引?

var tabIndex = 4; //hard coded NOT WHAT I WANT 
var tabStrip = $("#navigationTab").data("kendoTabStrip");    
var item = tabStrip.tabGroup.find(':contains("Billing")'); 
tabIndex = item.?? 
setTabUrl("navigationTab", tabIndex, '@Url.Action(Mvc.Areas.Account.Billing.ActionNames.AccountBilling, Mvc.Areas.Account.Billing.Name, new { id = Model.AccountId })'); 

感謝

回答

1
var tabStrip = $("#navigationTab").data("kendoTabStrip");    
var item = tabStrip.tabGroup.find(':contains("Billing")'); 
var tabIndex = item.index(); // tabIndex == 4 
相關問題