Hello, i use MVC4 and i create a window (with dynamic content) first invisible :
@(Html.Kendo().Window()
.Visible(false)
.Name("mywindow")
.....
)
Then i open it on button's click but it always opens with empty content (no problem if the window is first visible)
var window = $("#mywindow");
$("#mybutton").click(function (e) {
$("#formulaire").kendoWindow({
visible: true
}).data("kendoWindow");
window.data("kendoWindow").refresh().center().open();
});
i tried several things like this
$(document).ready(function () {
var window = $("#mywindow").kendoWindow({
visible: true
}).data("kendoWindow");
...
but it never works : the window opens but empty
@(Html.Kendo().Window()
.Visible(false)
.Name("mywindow")
.....
)
Then i open it on button's click but it always opens with empty content (no problem if the window is first visible)
var window = $("#mywindow");
$("#mybutton").click(function (e) {
$("#formulaire").kendoWindow({
visible: true
}).data("kendoWindow");
window.data("kendoWindow").refresh().center().open();
});
i tried several things like this
$(document).ready(function () {
var window = $("#mywindow").kendoWindow({
visible: true
}).data("kendoWindow");
...
but it never works : the window opens but empty