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

Animation not working

2 Answers 140 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mythox
Top achievements
Rank 1
Mythox asked on 05 Sep 2012, 09:31 AM
i'm using window for show content, all is ok but animation not work.

My code:

$("#window").kendoWindow({
        modal: true,
        width: "250px",
        height: "150px",
        title: "Title",
        actions: ["Refresh", "Maximize", "Close"]
    });
$("#open").click(function () {
        $("#window").data("kendoWindow").center().open();
    });
$("#close").click(function () {
         $("#window").data("kendoWindow").close();
    });

What is wrong?
Window have default animation?
Thanks.

2 Answers, 1 is accepted

Sort by
0
Nohinn
Top achievements
Rank 1
answered on 05 Sep 2012, 10:09 AM
I do not know if this is what you're trying to achieve:
http://jsbin.com/ovemux/1/

If this is the case, to start with you should set the visibility of the window to false, if you don't set it the window will be opened as soon as that script runs.
Also, take into account the css applied to the close button, as you set the window to be modal, if you don't set the position to fixed the button will be always underneath the modal overlay.
0
Mythox
Top achievements
Rank 1
answered on 05 Sep 2012, 10:29 AM
The close button are into window ... thanks
I have the problem in maping of the JS and CSS files, i mapped to more files than i need. Any animation was not working.
Now the problem is solved, thanks for you patience.
Tags
Window
Asked by
Mythox
Top achievements
Rank 1
Answers by
Nohinn
Top achievements
Rank 1
Mythox
Top achievements
Rank 1
Share this question
or