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
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.