Hello,
I am trying to reload the content of one of my Tabs in different scenarios. I have different grids and other tabs that when their content changes I need to reload my checklist tab. However, when I call tabStrip.reload("li:first"); I get reload undefined.
Here is my TabStrip:
@(
Html.Kendo().TabStrip()
.Name("CaseTabStrip")
.TabPosition(TabStripTabPosition.Left)
.Animation(animation => animation.Open(effect => effect.Fade(FadeDirection.In).Duration(5)))
.Events(events => events.ContentLoad("onContentLoad"))
.Items(items =>
{
items.Add().Text("Checklist")
.Selected(true)
.LoadContentFrom(Url.Action("Checklist", "Cases", new { caseId = Model.Id }));
// Extra tabs removed for brevity
items.Add().Text("Documents")
.LoadContentFrom(Url.Action("Index", "Documents", new { caseId = Model.Id }));
})
.HtmlAttributes(new { @class = "mt-5" })
)
And, this is how I am implementing the reload of the Checklist tab.
var ReloadChecklist = () => {
var tabStrip = $("#CaseTabStrip").data("kendoTabStrip");
tabStrip.reload("li:first"); // No console error, but stepping through code shows "reload undefined"
}
function DocTypeRequestEnd(e) {
var grid = $("#Documents").data("kendoGrid");
if (grid) {
grid.dataSource.read();
}
ReloadChecklist();
GridRequestEnd(e);
}