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

Is it possible to set 15 Min Slot Duration in RadScheduler

14 Answers 529 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 19 May 2009, 01:15 PM
i wonder, if it is possible to set shorter time slots like 15 min in RadScheduler?
Thanks

14 Answers, 1 is accepted

Sort by
0
Muhammad
Top achievements
Rank 1
answered on 20 May 2009, 05:34 AM
I am still waiting for your response.
0
Paul
Telerik team
answered on 20 May 2009, 08:03 AM
Hi Sajid,

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.
0
Muhammad
Top achievements
Rank 1
answered on 20 May 2009, 12:20 PM

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="&quot;dd&quot;" />

                                                        <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>

 

 

0
Muhammad
Top achievements
Rank 1
answered on 21 May 2009, 10:17 AM
We have set TimelineView-SlotDuration="00:15:00" ... in code; but it is still showing time slot duration 30 min.s

Kindly review the code sent earlier and let us know where we is the error.

Your urgent response will be highly appreciated.
0
Muhammad
Top achievements
Rank 1
answered on 21 May 2009, 10:40 AM
Just want to add one more point. After above settings; I am expecting that this should change the time slot in day view and in week view to 15 min.s; therefore users will be able to create an appointment / meeting of duration 15 mins.

Can I do that?
0
Paul
Telerik team
answered on 22 May 2009, 09:08 AM
Hi Sajid Wahab,

Please, try setting:

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.
0
Oneview Corp
Top achievements
Rank 1
answered on 27 May 2011, 07:27 AM
That does expand out the calendar, but two issues remain:
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?
0
Peter
Telerik team
answered on 27 May 2011, 09:22 AM
Hello Oneview,

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.

0
sharanya
Top achievements
Rank 1
answered on 01 Aug 2014, 01:42 AM
Hi Peter,

Where is the radTimepicker element 'StartTime'? It gives me a object reference null error when I try the above code.

Thanks & Regards,
Sharanya
0
Boyan Dimitrov
Telerik team
answered on 05 Aug 2014, 02:31 PM
Hello,

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.

 
0
Srivalli
Top achievements
Rank 1
answered on 10 Nov 2016, 07:34 PM

Hi,

Im using RadScheduler in my application and selected-view is timeline view for some reason dates are repeating on UI.

Appreciate your help. Following is the screenshot and code

<TimelineView NumberOfSlots="5" />

 

 

 

 

0
Srivalli
Top achievements
Rank 1
answered on 10 Nov 2016, 07:43 PM

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.

0
Veselin Tsvetanov
Telerik team
answered on 14 Nov 2016, 02:36 PM
Hello Srivalli,

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
Check out the new UI for ASP.NET Core, UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Hevin
Top achievements
Rank 1
answered on 26 Oct 2017, 05:19 AM
You just need to assign these properties and it will resolve all of your problems you mentioned above                                         MinutesPerRow="15" HoursPanelTimeFormat="hh:mm" NumberOfHoveredRows="1"                                                                                           
Tags
Scheduler
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Muhammad
Top achievements
Rank 1
Paul
Telerik team
Oneview Corp
Top achievements
Rank 1
Peter
Telerik team
sharanya
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Srivalli
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Hevin
Top achievements
Rank 1
Share this question
or