Michel Laforce
Top achievements
Rank 1
Michel Laforce
asked on 26 Sep 2011, 12:57 PM
Where can I change the time range when creating a new appointmement, view the attached image.
Thanks
Thanks
3 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 26 Sep 2011, 01:51 PM
Hello Michel.,
Try the folowing code snippet to achieve your scenario.
C#:
Thanks,
Shinu.
Try the folowing code snippet to achieve your scenario.
C#:
protected
void
RadScheduler1_FormCreated(
object
sender, SchedulerFormCreatedEventArgs e)
{
if
((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
{
RadTimePicker startTime = e.Container.FindControl(
"StartTime"
)
as
RadTimePicker;
startTime.TimeView.Interval =
new
TimeSpan(0, 15, 0);
startTime.TimeView.DataList.DataSource =
null
;
startTime.DataBind();
RadTimePicker endTime = e.Container.FindControl(
"EndTime"
)
as
RadTimePicker;
endTime.TimeView.Interval =
new
TimeSpan(0, 15, 0);
endTime.TimeView.DataList.DataSource =
null
;
endTime.DataBind();
}
}
Thanks,
Shinu.
0
Jon
Top achievements
Rank 1
answered on 25 Aug 2012, 02:38 PM
I used RadScheduler in client side(web service-MVC). How to set the start/end time in the Advanced Form in javascript?
I searched in the Telerik forum and could not find any help on this.
Thanks
I searched in the Telerik forum and could not find any help on this.
Thanks
0
Hello Jon,
As far as I understand - you want to set the start and end time date picker values from client-side.
Let me suggest you take a look at the "Change end date/time automatically when start date/time changes" section of this help article.
Additionally you can download the sample code provided in the article and modify it to fit your scenario.
All the best,
Kalina
the Telerik team
As far as I understand - you want to set the start and end time date picker values from client-side.
Let me suggest you take a look at the "Change end date/time automatically when start date/time changes" section of this help article.
Additionally you can download the sample code provided in the article and modify it to fit your scenario.
All the best,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.