Hi,
I had a popup window, which opens from the button inside tabstrip "Regime sequence" and i want my tabstrip to reload once the window is closed. But it is not reloading from my below script. Why??
Below is my code:
<script type="text/javascript">
$(document).ready(function () {
$(".k-window-action.k-link").click(function () {
var tabStrip = $("#abc").data("kendoTabStrip"); //finding tabstrip
var tabContent = $("#abc").data("kendoTabStrip").contentHolder(1); //selecting particular tab
tabStrip.reload(tabContent); //reloading the tab
});
});
</script>
@(Html.Kendo().TabStrip()
.Name("workshopServiceRegime_#=REGIME_ID#")
.HtmlAttributes(new { @style = "margin-left:-40px", @id="abc" })
.SelectedIndex(0)
.Items(items =>
{
items.Add()
.Text("Regime detail")
.LoadContentFrom("ServiceRegimeDetail", "ServiceRegimeDetail");
items.Add()
.Text("Regime sequence")
.LoadContentFrom("ServiceRegimeSequenceList", "ServiceRegimeSequenceList");
items.Add()
.Text("Regime MMSB")
.LoadContentFrom("MMSBServiceRegimeList", "MMSBServiceRegimeList");
})
)
I had a popup window, which opens from the button inside tabstrip "Regime sequence" and i want my tabstrip to reload once the window is closed. But it is not reloading from my below script. Why??
Below is my code:
<script type="text/javascript">
$(document).ready(function () {
$(".k-window-action.k-link").click(function () {
var tabStrip = $("#abc").data("kendoTabStrip"); //finding tabstrip
var tabContent = $("#abc").data("kendoTabStrip").contentHolder(1); //selecting particular tab
tabStrip.reload(tabContent); //reloading the tab
});
});
</script>
@(Html.Kendo().TabStrip()
.Name("workshopServiceRegime_#=REGIME_ID#")
.HtmlAttributes(new { @style = "margin-left:-40px", @id="abc" })
.SelectedIndex(0)
.Items(items =>
{
items.Add()
.Text("Regime detail")
.LoadContentFrom("ServiceRegimeDetail", "ServiceRegimeDetail");
items.Add()
.Text("Regime sequence")
.LoadContentFrom("ServiceRegimeSequenceList", "ServiceRegimeSequenceList");
items.Add()
.Text("Regime MMSB")
.LoadContentFrom("MMSBServiceRegimeList", "MMSBServiceRegimeList");
})
)