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

how to set the window position based on button

1 Answer 121 Views
Window
This is a migrated thread and some comments may be shown as answers.
SR
Top achievements
Rank 1
SR asked on 25 Apr 2016, 06:37 AM

Hi

I have a radbutton when i click button open radwindow under the button i have done this using open element id of OpenerElementID set the properties as left=1100px and top=40px window opens exact position but when i zoom out and zoom in the browser percentage window position is not related to button .

any suggestions find the attachment.

Thks.

SR.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 25 Apr 2016, 07:21 AM

Hello,

The browser zoom is not an event handled internally by RadWIndow, mainly because there is no uniform and official such event.

What I would suggest is to handle it yourself and use the RadWindow API to get the offset/opener element you have set and the desired location, them use the moveTo method. Here are some useful links


Regards,

Marin Bratanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Window
Asked by
SR
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or