Hello,
I'm trying to animate the kendo window, however nothing is happening. The window opens without any animation. Am I missing something in the code?
@(Html.Kendo().Window()
.Name("createProjectDialog")
.Animation(c => c.Open(builder => builder.Zoom(ZoomDirection.In).Duration(AnimationDuration.Slow))
.Close(builder => builder.Zoom(ZoomDirection.Out).Duration(AnimationDuration.Slow)
).Enable(true))
.Title("Create New Project")
.LoadContentFrom("Create", "Projects")
.Modal(true)
.Draggable(true)
.Width(650)
.Visible(false))
Heres the script for opening the dialog:
$("#newProjectbtn").bind("click", function () {
$("#createProjectDialog").data().kendoWindow.open();
});
In the DOM i can see that the window was successfully initialized and the windows options has the enable animation section:
- options: Object
- actions: Array[1]
- animation: Object
- close: Object
- duration: 600
- effects: "zoom:out"
- hide: true
- __proto__: Object
- open: Object
- duration: 600
- effects: "zoom:in"
- show: true
Am I missing something here?