Hello,
I'm trying to use a date picker and a time picker in my advanced insert template, but am having a few issues with the time picker.
Here is my code so far:
The problems are that the calendar on the time picker does not have a skin and when you click on a time it doesn't update the input box. The date picker works fine.
I tried to follow this demo (http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx), but I don't understand it to be frank and it seems to be a totally different approach to what I taken via following another getting started demo. I like how the buttons don't appear in the demo and the calendars show on input focus, but again can't see how or where this is done?
Any help would be greatly appreciated.
EDIT: may be worth noting that I can extract data from the two controls without issue on the Appointment Command event with the following, so it just a UI input issue with the time picker control from what I can see:
Thanks,
Michael
I'm trying to use a date picker and a time picker in my advanced insert template, but am having a few issues with the time picker.
Here is my code so far:
| <telerik:RadDatePicker runat="server" ID="rdpStartInsert" SelectedDate='<%# Bind("Start") %>' Skin="Vista" /> |
| <telerik:RadTimePicker runat="server" ID="rtpStartInsert" Width="65px" Skin="Vista" SelectedDate='<%# Bind("Start") %>'> |
| <TimeView ID="timeStartInsert" runat="server" Columns="2" ShowHeader="false" StartTime="08:00" |
| EndTime="18:00" Interval="00:30" /> |
| </telerik:RadTimePicker> |
The problems are that the calendar on the time picker does not have a skin and when you click on a time it doesn't update the input box. The date picker works fine.
I tried to follow this demo (http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx), but I don't understand it to be frank and it seems to be a totally different approach to what I taken via following another getting started demo. I like how the buttons don't appear in the demo and the calendars show on input focus, but again can't see how or where this is done?
Any help would be greatly appreciated.
EDIT: may be worth noting that I can extract data from the two controls without issue on the Appointment Command event with the following, so it just a UI input issue with the time picker control from what I can see:
| RadDatePicker startInputDate = (RadDatePicker)e.Container.FindControl("rdpStartInsert"); |
| RadTimePicker startInputTime = (RadTimePicker)e.Container.FindControl("rtpStartInsert"); |
| DateTime selectedStartDate = startInputDate.SelectedDate.Value; |
| DateTime selectedStartTime = startInputTime.SelectedDate.Value; |
| DateTime eventStart = new DateTime(selectedStartDate.Year, selectedStartDate.Month, selectedStartDate.Day, |
| selectedStartTime.Hour, selectedStartTime.Minute, selectedStartTime.Second); |
| RadDatePicker endInputDate = (RadDatePicker)e.Container.FindControl("rdpEndInsert"); |
| RadTimePicker endInputTime = (RadTimePicker)e.Container.FindControl("rtpEndInsert"); |
| DateTime selectedEndDate = endInputDate.SelectedDate.Value; |
| DateTime selectedEndTime = endInputTime.SelectedDate.Value; |
| DateTime eventEnd = new DateTime(selectedEndDate.Year, selectedEndDate.Month, selectedEndDate.Day, |
| selectedEndTime.Hour, selectedEndTime.Minute, selectedEndTime.Second); |
Thanks,
Michael