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

RadDatePicker Calendar Popup on Side

2 Answers 117 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 15 Feb 2012, 08:54 PM
I have a modal popup window on my page using a RadWindow control. On the popup page I have a RadDatePicker control without a lot of space above or below it. When the calendar button is clicked the calendar popup displays below the control and causes the window to display scrollbars. I do not like this and since I have plenty of room on the right side of the control, I'd like to display the calendar popup over there. Is there some custom javascript I can use to display the calendar popup on the side instead of just above or below the control?

Thanks,
Dan

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 16 Feb 2012, 01:48 PM
Hello,

Try the following javascript.
JS:
<script type="text/javascript">
 function Popup_Side(e)
    {
       var datePicker = $find("<%=RadDatePicker1.ClientID %>");
       datePicker.showPopup(150,5);
     }
</script>
C#:
RadDatePicker1.DatePopupButton.Attributes.Add("onclick", "Popup_Side(event);return false;"); //to attatch the event

Thanks,
Princy.
0
Daniel
Top achievements
Rank 1
answered on 16 Feb 2012, 05:41 PM
Thank you so much for your quick reply! This saved me from many more hours of trial and error!
Tags
Calendar
Asked by
Daniel
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Daniel
Top achievements
Rank 1
Share this question
or