Stuart Hemming
Top achievements
Rank 2
Stuart Hemming
asked on 11 Jun 2009, 10:45 AM
I have a page that appears in a RadWindow.
The page contains a number of input controls, including RadDatePickers.
If the picker is close to the bottom of the screen the popup causes the page to 'grow' scrollbars.
I thought it would be nice to simply centre the popup but I'm struggling.
I started to use your example code for "Displaying The Popup Above The Input Area" as a basis. I tried to wire up the "OnButtonClick" client event rather than the "OnKeyPress" as in your example, but I can't seem to get it to fire.
I then, unthinkingly, tried to use the "OnPopupOpening" client event of the RadDatePicker, but - and it's obvious now - that doesn't work 'cos the same code is repeated endlessly 'cos it's called when showPopup. After that I tried setting the style of the results of the ".get_popupContainer" method to set the position, but that didn't seem to work either.
Can someone give me a hint?
TIA
--
Stuart
The page contains a number of input controls, including RadDatePickers.
If the picker is close to the bottom of the screen the popup causes the page to 'grow' scrollbars.
I thought it would be nice to simply centre the popup but I'm struggling.
I started to use your example code for "Displaying The Popup Above The Input Area" as a basis. I tried to wire up the "OnButtonClick" client event rather than the "OnKeyPress" as in your example, but I can't seem to get it to fire.
I then, unthinkingly, tried to use the "OnPopupOpening" client event of the RadDatePicker, but - and it's obvious now - that doesn't work 'cos the same code is repeated endlessly 'cos it's called when showPopup. After that I tried setting the style of the results of the ".get_popupContainer" method to set the position, but that didn't seem to work either.
Can someone give me a hint?
TIA
--
Stuart
8 Answers, 1 is accepted
0
Stuart Hemming
Top achievements
Rank 2
answered on 15 Jun 2009, 10:18 AM
No replies in here either.
Do I need to change my aftershave?
--
Stuart
Do I need to change my aftershave?
--
Stuart
0
Hello Stuart,
You can have a look at this online demo and see how the RadDatePicker popup position is changed so that the calendar is displayed above the DateInput.
Give it a try and let me know if this works for you.
Sincerely yours,
Iana
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.
You can have a look at this online demo and see how the RadDatePicker popup position is changed so that the calendar is displayed above the DateInput.
Give it a try and let me know if this works for you.
Sincerely yours,
Iana
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.
0
Stuart Hemming
Top achievements
Rank 2
answered on 16 Jun 2009, 11:13 AM
Iana,
Yes, I've seen that demo; in fact I referred to it in my opening post.
The problem is that I want the calendar to centre in the window when the user clicks on to DatePicker's calendar button.
What I need it some help identifying the correct way to call my popup reclocation function, or more correctly, the correct event to call it from.
As you can see from my original post, I've tried a number of things but have, thus far, failed to hit on the correct combination.
--
Stuart
Yes, I've seen that demo; in fact I referred to it in my opening post.
The problem is that I want the calendar to centre in the window when the user clicks on to DatePicker's calendar button.
What I need it some help identifying the correct way to call my popup reclocation function, or more correctly, the correct event to call it from.
As you can see from my original post, I've tried a number of things but have, thus far, failed to hit on the correct combination.
--
Stuart
0
Hello Stuart,
You may be happy to know that for the next major release (Q2 2009), expected in the beginning of the next month, we will introduce screen boundary detection for the calendar popup as well as explicit popup direction setting for it when expanded. This would be helpful in your case since you will not need any custom javascript logic to control the location where the popup calendar will be displayed.
Hence I encourage you to try out the Q2 2009 Beta release of the suite which will be announced later today or tomorrow.
Best,
Sebastian
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.
You may be happy to know that for the next major release (Q2 2009), expected in the beginning of the next month, we will introduce screen boundary detection for the calendar popup as well as explicit popup direction setting for it when expanded. This would be helpful in your case since you will not need any custom javascript logic to control the location where the popup calendar will be displayed.
Hence I encourage you to try out the Q2 2009 Beta release of the suite which will be announced later today or tomorrow.
Best,
Sebastian
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.
0
Stuart Hemming
Top achievements
Rank 2
answered on 16 Jun 2009, 01:39 PM
Sebastian,
Thanks for that.
I'll have to run that past TPTB at this end.
Can I infer from your reply that there actually isn't a workaround for my issue?
--
Stuart
Thanks for that.
I'll have to run that past TPTB at this end.
Can I infer from your reply that there actually isn't a workaround for my issue?
--
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 16 Jun 2009, 02:04 PM
I've just received the notification and see that there's NO mention oif any changes to RadCalendar...
--
Stuart
--
Stuart
0
Accepted
Hello Stuart,
This means that you will not need any custom implementation to display the popup calendar/time view in the visible area of the window. I hope this clarification is helpful.
Stand by for the Q2 2009 Beta release and test it to see the result.
Regards,
Sebastian
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.
This means that you will not need any custom implementation to display the popup calendar/time view in the visible area of the window. I hope this clarification is helpful.
Stand by for the Q2 2009 Beta release and test it to see the result.
Regards,
Sebastian
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.
0
Stuart Hemming
Top achievements
Rank 2
answered on 16 Jun 2009, 02:46 PM
Ta.
--
Stuart
--
Stuart