Issues with the kendo windows animation with mvc wrappers

1 posts, 0 answers
  1. daniel danie
    daniel danie avatar
    2 posts
    Member since:
    Jan 2010

    Posted 27 Nov 2012 Link to this post

    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?
Back to Top