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

Min Size for window

1 Answer 92 Views
Window
This is a migrated thread and some comments may be shown as answers.
Juan Angel
Top achievements
Rank 1
Veteran
Juan Angel asked on 23 Jul 2008, 12:03 PM
Dear support:

I can set width and height when open a window and I choose if this window can be resized, but I want set a min width and size, i.e. open a window with 800x600, that can resize only if the new size > 800x600

Thanks

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 24 Jul 2008, 01:07 PM
Hi Juan,

You can achieve the desired behavior by building your custom logic. For this purpose I would suggest to hook up the OnClientResize event and use the ASP.NET AJAX mechanism for finding the current size of the RadWindow:

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

After that, you can compare them to the desired ones and reset them by using the client-side set_width and set_height methods. Feel free to extend my suggestion further in order to meet your particular needs.

Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Juan Angel
Top achievements
Rank 1
Veteran
Answers by
Svetlina Anati
Telerik team
Share this question
or