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

Scheduler - External Edit in RadDock Modify RadDateTimePicker Settings

1 Answer 32 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 25 Jan 2018, 05:19 PM

I am using this example and would like to change the TimeView.StartTime to then radScheduler.DayStartTime.Hours and the TimeView.Interval to 15 minutes when the raddock displays as the appointment edit. I have tried numerous events but the changes do not apply.

Any help would be greatly appreciated, thanks in advanve . 

 Dim rtpStartTime As RadDateTimePicker = TryCast(rdAddEditAppointment.ContentContainer.FindControl("StartTime"), RadDateTimePicker)
            If Not IsNothing(rtpStartTime) Then
                rtpStartTime.TimeView.StartTime = New TimeSpan(rsScheduler.DayStartTime.Hours, 0, 0)
                rtpStartTime.TimeView.Interval = New TimeSpan(0, DefaultScheduleMinutes, 0)
           End If

            Dim rtpEndTime As RadDateTimePicker = TryCast(rdAddEditAppointment.ContentContainer.FindControl("EndTime"), RadDateTimePicker)
            If Not IsNothing(rtpEndTime) Then
                rtpEndTime.TimeView.EndTime = New TimeSpan(rsScheduler.DayEndTime.Hours, 0, 0)
                rtpEndTime.TimeView.Interval = New TimeSpan(0, DefaultScheduleMinutes, 0)
            End If

1 Answer, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 25 Jan 2018, 06:41 PM
I was actually able to resolve my issue by removing the SharedCalendarID and the SharedTimeViewID.
Tags
Scheduler
Asked by
Dan
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Share this question
or