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

How to create a window client-side with open animation

3 Answers 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael Maluck
Top achievements
Rank 2
Michael Maluck asked on 18 Mar 2011, 12:24 PM
Hello All,

when creating a window server side by using Html.Telerik().Window() I can use Visibility(false) and when opening the window it plays a nice animation.

How to get the same animation when creating the window by using $.telerik.window.create?

Regards,
Michael

3 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 21 Mar 2011, 02:45 PM
Hello Michael Maluck,

Create a hidden window and use the open() client-side method:
var windowObject = $.telerik.window.create({
        title: "title",
        content: "content",
        width: 200,
        height: 200
    }).hide().data('tWindow');

$('#openWindow').click(function() {
    windowObject.open();
});


The attached solution demonstrates that.

Greetings,
Alex Gyoshev
the Telerik team
0
Michael Maluck
Top achievements
Rank 2
answered on 21 Mar 2011, 02:56 PM
Hello Alex,

this works great. Thank you.

Best wishes,
Michael
0
Patricia Byrne
Top achievements
Rank 1
answered on 20 Jan 2012, 05:57 PM
Hi Alex,

I downloaded your example zip. This is exactly what I need to do.

There is an issue though. It takes two clicks to close the window.

This is happening in firefox and IE 9, 8 and 7.

Can you please tell me the fix for this.

Thank you for any info on this.

Hope to hear from you.

Patricia Byrne
Tags
Window
Asked by
Michael Maluck
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
Michael Maluck
Top achievements
Rank 2
Patricia Byrne
Top achievements
Rank 1
Share this question
or