Is it possible to set 15 Min Slot Duration in RadScheduler

14 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    16 posts
    Member since:
    Jan 2009

    Posted 19 May 2009 Link to this post

    i wonder, if it is possible to set shorter time slots like 15 min in RadScheduler?
    Thanks

  2. Muhammad
    Muhammad avatar
    16 posts
    Member since:
    Jan 2009

    Posted 20 May 2009 Link to this post

    I am still waiting for your response.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 20 May 2009 Link to this post

    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.
  5. Muhammad
    Muhammad avatar
    16 posts
    Member since:
    Jan 2009

    Posted 20 May 2009 Link to this post

    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>

     

     

  6. Muhammad
    Muhammad avatar
    16 posts
    Member since:
    Jan 2009

    Posted 21 May 2009 Link to this post

    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.
  7. Muhammad
    Muhammad avatar
    16 posts
    Member since:
    Jan 2009

    Posted 21 May 2009 Link to this post

    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?
  8. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 22 May 2009 Link to this post

    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.
  9. Oneview Corp
    Oneview Corp avatar
    18 posts
    Member since:
    Sep 2009

    Posted 27 May 2011 Link to this post

    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?
  10. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 27 May 2011 Link to this post

    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.

  11. sharanya
    sharanya avatar
    13 posts
    Member since:
    Jun 2010

    Posted 31 Jul 2014 in reply to Peter Link to this post

    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
  12. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 05 Aug 2014 Link to this post

    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.

     
  13. Srivalli
    Srivalli avatar
    8 posts
    Member since:
    May 2016

    Posted 10 Nov in reply to Boyan Dimitrov Link to this post

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

     

     

     

     

  14. Srivalli
    Srivalli avatar
    8 posts
    Member since:
    May 2016

    Posted 10 Nov in reply to Boyan Dimitrov Link to this post

    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.

  15. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    290 posts

    Posted 14 Nov Link to this post

    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, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017