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

Window resize

4 Answers 877 Views
Window
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 24 Nov 2011, 06:20 PM
How to you adjust the size of a kendowindow on the fly via javascript after its already been created and is visible?

4 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 25 Nov 2011, 07:53 AM
Hi Justin,

Assuming that you get the window object like this:
    var kendoWindow = $("#Window1").data("kendoWindow");

There is the wrapper property that holds the window wrapping element (jQuery object) that determines the window position and size:
    kendoWindow.wrapper.css({
        width: 100,
        height: 300
    });

Best wishes,
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!
0
Rikin Patel
Top achievements
Rank 1
answered on 29 Oct 2012, 06:57 AM
thanks work fine but after resize window is not center of screen like at initial open window so, how can do it....? 
0
Rikin Patel
Top achievements
Rank 1
answered on 29 Oct 2012, 06:59 AM
try this 

        kendoWindow.center();

0
Mark
Top achievements
Rank 1
answered on 06 Nov 2012, 12:08 AM
How do you get the new height and width after a user re-sizes the window?  I want to be able to dynamically adjust content inside the window based on the size of window.  Is this possible?
Tags
Window
Asked by
Justin
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Rikin Patel
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Share this question
or