14 Answers, 1 is accepted
If you want to set the slot duration to 15 min, please use the following:
TimelineView-SlotDuration = "00:15:00"
Best wishes,
Paul
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I did that but of no avail. It will be great if you could provide me more detail or code or demo. Please let me if I am missing something ?
<telerik:RadScheduler OverflowBehavior="Scroll" Height="500px" runat="server"
AllowEdit="false" Skin="Hay" AllowInsert="false" AllowDelete="false" ID="RadScheduler1"
SelectedView="TimelineView" OnAppointmentCommand="RadScheduler1_AppointmentCommand"
OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated"
OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" DisplayDeleteConfirmation="False"
EnableAdvancedForm="False" ShowFooter="False" ShowFullTime="false" ShowViewTabs="False"
MonthColumnHeaderDateFormat="" TimelineView-SlotDuration="00:15:00" MonthHeaderDateFormat="" WorkDayEndTime="23:59:00"
WorkDayStartTime="00:00:00" OnClientAppointmentClick="viewResults" OnClientTimeSlotClick="addResults"
OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
SelectedDate="2008-11-26">
<ResourceTypes>
<telerik:ResourceType Name="TestType" />
</ResourceTypes>
<AppointmentTemplate>
<!---- </AppointmentTemplate>
<MonthView UserSelectable="False" VisibleAppointmentsPerDay="1" ColumnHeaderDateFormat=""
HeaderDateFormat="" />
<TimelineView GroupingDirection="Vertical" HeaderDateFormat=""dd"" />
<WeekView UserSelectable="False" />
<DayView UserSelectable="false" />
<InlineInsertTemplate>
<div>
<asp:LinkButton ID="btnNewView" runat="server" CommandName="View" Text="View" />
</div>
</InlineInsertTemplate>
<InlineEditTemplate>
<div>
<asp:LinkButton ID="btnExitingView" runat="server" CommandName="Update" Text="View" />
</div>
</InlineEditTemplate>
</telerik:RadScheduler>
Kindly review the code sent earlier and let us know where we is the error.
Your urgent response will be highly appreciated.
Can I do that?
MinutesPerRow="15"
HoursPanelTimeFormat="hh:mm"
and let us know if this is what you need.
All the best,
Paul
the Telerik team
Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
1. Mouseover on calendar highlights the half hour slots instead of 15 minutes
2. The time-slots in the advanced form are still in 30 minute increments
How do I resolve these?
1. You can control this behavior through the NumberOfHoveredRows property of RadScheduler.
2. Here is a workaround for this requirement -
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.StartTime = RadScheduler1.DayStartTime;
startTime.TimeView.EndTime = RadScheduler1.DayEndTime;
startTime.TimeView.Interval =
new
TimeSpan(0, RadScheduler1.MinutesPerRow, 0);
startTime.TimeView.DataList.DataSource =
null
;
startTime.DataBind();
RadTimePicker endTime = e.Container.FindControl(
"EndTime"
)
as
RadTimePicker;
endTime.TimeView.StartTime = RadScheduler1.DayStartTime;
endTime.TimeView.EndTime = RadScheduler1.DayEndTime;
endTime.TimeView.Interval =
new
TimeSpan(0, RadScheduler1.MinutesPerRow, 0);
endTime.TimeView.DataList.DataSource =
null
;
endTime.DataBind();
}
}
Greetings,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Where is the radTimepicker element 'StartTime'? It gives me a object reference null error when I try the above code.
Thanks & Regards,
Sharanya
I would like to note that the startTime RadTimepicker only exists in the advanced form. Could you please confirm that you placed the custom logic from Peter's response in this if condition?
//code behind
if
((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
{
//here goes the logic for finding the statTime control
....
}
Regards,
Boyan Dimitrov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Hi,
Im using RadScheduler in my application and selected-view is timeline view for some reason dates are repeating. Im trying to display all the appointments in the timelineview.
Appreciate your help. Following is the screenshot and code
<TimelineView NumberOfSlots="5" />
trying to display 5 days but the dates are repeating on the scheduler.
As far as I can see on the screenshot, you have five days (slots) displayed in the RadScheduler. 6th of November, however, is repeated in your TimeLine view.
If this is the issue faced, I would like to ask you to open a support ticket and send us an isolated runnable sample project reproducing the problem. This way we will be able to troubleshoot the issue locally and to provide you with the most appropriate assistance for your case.
Regards,
Veselin Tsvetanov
Telerik by Progress