I updated my calendar control to the Prometheus version and it broke some of the funtionality i was previously using. I will describe what I am trying to do and hopefully someone can let me know how I can implement this with the Prometheus controls or if this is in fact a bug.
Previously, I was using a RadDateTimePicker control with a Checkbox control labeled "Enter time". I was setting the visibility of the TimeView part, and the format of the dateview part, using the status of the checkbox ... like this:
And once this happens, the calendar button breaks and does not popup the calendar.
Any ideas?
Thanks,
John
Pyron Technologies
Previously, I was using a RadDateTimePicker control with a Checkbox control labeled "Enter time". I was setting the visibility of the TimeView part, and the format of the dateview part, using the status of the checkbox ... like this:
bool enterTime = chkShowTimes.Checked; |
RadDateTimePicker1.DateInput.DateFormat = enterTime ? "M/d/yyyy h:mm tt" : "d"; |
RadDateTimePicker1.DateInput.DisplayDateFormat = enterTime ? "M/d/yyyy h:mm tt" : "d"; |
RadDateTimePicker1.TimeView.Visible = enterTime; |
RadDateTimePicker1.TimePopupButton.Visible = enterTime; |
This concept worked in the non-Prometheus version, but now once I set the "TimeView" portion "visible = false", I get a javascript error:
Microsoft JScript runtime error: Sys.InvalidOperationException: |
Component 'RadDateTimePicker1_timeView' was not found. |
And once this happens, the calendar button breaks and does not popup the calendar.
Any ideas?
Thanks,
John
Pyron Technologies