This is a migrated thread and some comments may be shown as answers.

Issues with the kendo windows animation with mvc wrappers

0 Answers 130 Views
Window
This is a migrated thread and some comments may be shown as answers.
daniel danie
Top achievements
Rank 1
daniel danie asked on 28 Nov 2012, 04:44 AM
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:
  1. optionsObject
    1. actionsArray[1]
    2. animationObject
      1. closeObject
        1. duration600
        2. effects"zoom:out"
        3. hidetrue
        4. __proto__Object
      2. openObject
        1. duration600
        2. effects"zoom:in"
        3. showtrue

Am I missing something here?

No answers yet. Maybe you can help?

Tags
Window
Asked by
daniel danie
Top achievements
Rank 1
Share this question
or