I was looking at this example:
http://demos.telerik.com/aspnet/prometheus/Calendar/Examples/DatePicker/CustomPopup/DefaultCS.aspx
It has this:
<DateInput onclick="ToggleSecondPopup()" DateFormat="D">
</DateInput>
I want to have the user pop up the calendar when they click the date input field.
but I tried this in codebehind:
RadDatePicker1.DateInput.Attributes.Add("onclick", "PopupCalendar()")
And it doesn't work. Also, the DateInput.OnClick attribute doesn't exist.
How do I do this in codebehind?
My javascript is:
<script type="text/javascript">
function PopupCalendar()
{
$find("<%= Raddatepicker1.ClientID %>").showPopup();
}
</script>
thanks.
http://demos.telerik.com/aspnet/prometheus/Calendar/Examples/DatePicker/CustomPopup/DefaultCS.aspx
It has this:
<DateInput onclick="ToggleSecondPopup()" DateFormat="D">
</DateInput>
I want to have the user pop up the calendar when they click the date input field.
but I tried this in codebehind:
RadDatePicker1.DateInput.Attributes.Add("onclick", "PopupCalendar()")
And it doesn't work. Also, the DateInput.OnClick attribute doesn't exist.
How do I do this in codebehind?
My javascript is:
<script type="text/javascript">
function PopupCalendar()
{
$find("<%= Raddatepicker1.ClientID %>").showPopup();
}
</script>
thanks.