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

Animation False...

1 Answer 225 Views
Window
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 24 Aug 2011, 04:13 PM
Documentation says setting animation to false disables the animations...but any version I add in makes the window not function (like nothing happens when I call .open)

$("#link-window").kendoWindow({
                          draggable: false,
                          resizable: false,
                          visible: false,
                          modal: true,
                          animation: "false",
                          width: "300px",
                          height: "100px",
                          actions: ["Close"]
                  });

$("#link-window").kendoWindow({
                          draggable: false,
                          resizable: false,
                          visible: false,
                          modal: true,
                          animation: false,
                          width: "300px",
                          height: "100px",
                          actions: ["Close"]
                  });

....am I doing it wrong?

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 26 Aug 2011, 07:57 AM
Good catch, Steve! We just fixed that, thanks. The following code in the window#init() method will do the trick (after options = that.options):

if (options.animation === false) {
    options.animation = { open: { show: true, effects: {} }, close: { hide:true, effects: {} } };
}


Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Alex Gyoshev
Telerik team
Share this question
or