This is a migrated thread and some comments may be shown as answers.
Moving Modal RadWindow without mouse?
1 Answer 17 Views
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 18 Nov 2009, 02:38 PM

Hello All,

We have a ASP.NET AJAX based application which uses Modal RadWindow Popups.

Same application will run in different organizations and some organizations have small resolution monitors.

First I would asked that if Popup Window is quite big in small resolution monitor ant Window's caption is now shown, how can I move Window with using mouse? Are there any key combinations which would move Modal RadWindow?

Second question is that have any of you made scalable Popup Windows? Can it be done using Telerik's RadWindow?

Thanks,

Michael

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 Nov 2009, 03:44 PM
Hi Mike,

Straight to your questions:

1) You can move the RadWindow by using its client-side moveTo method which is listed below:

http://www.telerik.com/help/aspnet-ajax/window_programmingradwindowmethods.html

If you want to move the RadWindow on particular event (e.g key pressed), you can simply attach a handler to the event, calculate teh desired new coordinates and use the method to move the RadWindow.

2) I am not completely sure what exactly you mean by "scalable" RadWindow - if you mean that you want to have percentages values for its size, this is not available out of the box. However, once again you can achieve it by using the client API. You can calculate e.g the viewport bounds and the actual pixel value which corrsponds to the percentage value and set it to the Radwindow by using the setSize method (or set_width and set_height). All these methods are also listed in the above provided url.

In case you have additional questions, do not hesiatate to contact us again, we will be glad to help.

Regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Asked by
Mike
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or