Hi,
I have a kendo tabstrip in which I want to know if its content is loaded or not in event Select. The tabstrip is defined as
<% Html.Kendo().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
{
tabstrip.Add()
.Text(OTP.Ring.Models.ViewModel.EvaluationsLocalization.EvaluationForm_Tab_Overall)
.Content(() =>
{
%>
<div style="height: 400px"></div>
<%
});
})
.Items(tabstrip =>
{
tabstrip.Add()
.Text(OTP.Ring.Models.ViewModel.EvaluationsLocalization.EvaluationForm_Tab_Coaching)
.Content(() =>
{
});
})
...
.Events(e => e.Select("onTabSelect")
.Activate("onTabLoad")
)
.SelectedIndex(Model.SelectedTabIndex)
.Render(); %>
function onTabSelect(e) {
var content = $(e.contentElement);
var index = $(e.item).index();
...
}
I tried $(e.contentElement).html(), but it is undefined. I am not sure how to get the content. The intent is that if the selected tab is already loaded before, then it won't be loaded again. Thanks.