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

Get window size in "OnClientcommand"

2 Answers 160 Views
Window
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 25 Mar 2008, 08:47 AM
I use "getWindowBounds" to determine height of a radWindow in "On ClientCommand" event. The problem is that this returns the original size of "radWindow" but no the maximized one also on "Restore" I have the size before "Maximize". How can I get the read height?

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 26 Mar 2008, 04:38 PM
Hello Markus,

For this purpose I would suggest to use the ASP.NET AJAX mechanism for finding the current size of the elements:

var bounds = $telerik.getBounds(sender.get_popupElement());
alert(bounds.height + " " + bounds.width);



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Markus
Top achievements
Rank 1
answered on 27 Mar 2008, 10:54 AM
Thnaks for help, I get it work!
Tags
Window
Asked by
Markus
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Markus
Top achievements
Rank 1
Share this question
or