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

Position Month/Year popup

3 Answers 154 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 10 Mar 2009, 05:36 PM
Hi Guys,

Does anyone have an example on how I can position the Month/Year popup.
Currently I have a calendar showiing on the far right hand side of a page, if a user then clicks in the Title Navigation zone, the Month/Year popup is partly hidden.
I would like to horizontally center the Month/Year popup within the Calendar instead of the left/top cordinates of where the user clicked.

Any ideas would be appreciated.

Many thanks
Antony

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Mar 2009, 06:18 AM
Hello Antony,

I hope the link to code library will helpful for you in achieving this functionality.
Show FastNavigation Popup on custom position

Thanks,
Princy.
0
Antony
Top achievements
Rank 1
answered on 11 Mar 2009, 09:06 AM
Hi Princy,

Many thanks for the link, is it possible for you to show me how the java script can be changed so that the Month/Year popup is displayed relative to the calendar position.
At the moment the cordinates of the popup are hardcoded and as my datepicker control is wrapped within a usercontrol I can not hardcode the clientX & clientY cordinates.
Is there a way to get a reference in the javascript to the DatePicker and use the getElementPosition() function to return the actual calendar cordinates and base the clientX & clientY cordinates on these?

Many thanks for your time.
Antony
0
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
answered on 18 Mar 2009, 01:18 PM
I've already got a similar problem with the position of the fastnavigationpopup. Maybye it can help.

FastNavigationPopup position static
Tags
Calendar
Asked by
Antony
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Antony
Top achievements
Rank 1
guillaume.lebel
Top achievements
Rank 1
Iron
Iron
Share this question
or