I am using Kendo Window on my MVC project.
This is how I initiate the object from the View
@(Html.Kendo().Window()
.Name("window")
.Content("loading page..")
.Iframe(true)
.Draggable()
.Visible(false)
.Height(200)
.Width(400)
.Modal(true)
)
and this is how I call the window using javaScript where _url is dynamic
$('#window')
.data("kendoWindow")
.title("Add new category")
.refresh({
url: _url
})
.center()
.open();
My problem is that whenever I open the window the second time it still displays the previous content until it finishes loading the current.
I tries to hide first the content using this:
$('#window')
.kendoWindow({
visible: false
})
.data("kendoWindow")
.title("Add new category")
.refresh({
url: _url
})
.center()
.open();
but the object is seems being destroyed when I try to close it.