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

[Solved] EnableScreenBoundaryDetection and top positions

1 Answer 182 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
TriZetto
Top achievements
Rank 1
TriZetto asked on 14 Aug 2009, 06:01 PM
Hello,
In the demo found here, the screen boundary detection does not seem to work when the menu open position is set to top left or top right. I tried this in IE6 and firefox. Is there away to fix this?
Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 17 Aug 2009, 01:03 PM
Hi TriZetto,

The control works as it should. Probably you have scrolled the page down a little and expect the Calendar popup to display downwards. However, this is not an expected behavior - the screen boundary detection functionality checks whether the page boundaries have been reached, not the browser viewport boundaries.

If you want the Calendar popup to display in accordance with the viewport scroll position, you can measure that scroll position and use the showPopup(x, y) DatePicker client API method to display the popup at a specified location (x, y) on the screen. The following page shows how to subscribe to the DatePicker button's click event and override the default popup behavior:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/clientapi/defaultcs.aspx


Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
TriZetto
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or