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

[Solved] RadDateTimePicker in AdvancedInsertTemplate

1 Answer 145 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Al asked on 22 Feb 2008, 08:06 PM

I would like to use the RadDateTimePicker in my AdvancedInsert/Edit Templates. However, I can't find any documentation to resolve the issue I am experiencing. The code below includes the RadDateTimePicker as the startInput control. VS reports that DateFormat is not a member of RadDateTimePicker. Can someone shed some light on how to use this control?

The user needs the ability to alter the time frame of the appointment from the form.

Thank you for your time.
Al


If

((e.Container.Mode = SchedulerFormMode.AdvancedInsert) _

OrElse (e.Container.Mode = SchedulerFormMode.AdvancedEdit)) Then

Dim subjectBox As TextBox = CType(e.Container.FindControl("TitleTextBox"), TextBox)

subjectBox.Text = e.Appointment.Subject

Dim startInput As RadDateTimePicker = CType(e.Container.FindControl("StartInput"), RadDateTimePicker)

startInput.DateFormat = (scheduler.EditFormDateFormat + (

" " + scheduler.EditFormTimeFormat))

startInput.SelectedDate = RadScheduler1.DisplayToUtc(e.Appointment.Start)

Dim endInput As RadDateInput = CType(e.Container.FindControl("EndInput"), RadDateInput)

endInput.DateFormat = (scheduler.EditFormDateFormat + (

" " + scheduler.EditFormTimeFormat))

endInput.SelectedDate = RadScheduler1.DisplayToUtc(e.Appointment.End)

End If

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Feb 2008, 01:18 PM
Hi Al,

Please, try setting the DateFormat through the DateInput property:
startInput.DateInput.DateFormat = ... 

Feel free to contact us if there are still any problems.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Al
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or