Trying to show only 5 min intervals

5 posts, 0 answers
  1. David
    David avatar
    5 posts
    Member since:
    Feb 2016

    Posted 02 Mar Link to this post

    I am trying to only show 5 min intervals but no matter what I do in code its only showing ie 10:10 ,10:20

    Here is what I have tried so far I am using the demo to evulate it for our company.

     

                    <telerik:RadScheduler runat="server" Skin="Bootstrap" ID="apertureAppointments" Width="100%" DataKeyField="ID" DataSubjectField="Subject"
                        DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule"
                        DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True"
                         RowHeight="30px" RenderMode="Auto" EnableDescriptionField="True" EnableExactTimeRendering="True"
                        DayStartTime="10:00:00"  DayView-DayStartTime="10:00:00" FirstDayOfWeek="Monday"  HoursPanelTimeFormat="H:mm:ss" LastDayOfWeek="Friday"     MinutesPerRow="5"
                            
                        >
                             
                        <ExportSettings OpenInNewWindow="True">
                            <Pdf PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" PageTopMargin="1in" />
                        </ExportSettings>
                        <AdvancedForm Modal="True" />
     
                         
     
     
                        <TimeSlotContextMenus>
                            <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
                                <Items>
                                    <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment" />
                                    <telerik:RadMenuItem IsSeparator="True" />
                                    <telerik:RadMenuItem Text="New Recurring Appointment" Value="CommandAddRecurringAppointment" />
                                    <telerik:RadMenuItem IsSeparator="True" />
                                    <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" />
                                    <telerik:RadMenuItem Text="Show 24 hours..." Value="CommandShow24Hours" />
                                </Items>
                            </telerik:RadSchedulerContextMenu>
                        </TimeSlotContextMenus>
     
                        <AppointmentContextMenus>
                            <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1">
                                <Items>
                                    <telerik:RadMenuItem Text="Open" Value="CommandEdit" />
                                    <telerik:RadMenuItem IsSeparator="True" />
                                    <telerik:RadMenuItem Text="Categorize">
                                        <Items>
                                            <telerik:RadMenuItem Text="Development" Value="1" />
                                            <telerik:RadMenuItem Text="Marketing" Value="2" />
                                            <telerik:RadMenuItem Text="Personal" Value="3" />
                                            <telerik:RadMenuItem Text="Work" Value="4" />
                                        </Items>
                                    </telerik:RadMenuItem>
                                    <telerik:RadMenuItem IsSeparator="True" />
                                    <telerik:RadMenuItem Text="Delete" Value="CommandDelete" />
                                </Items>
                            </telerik:RadSchedulerContextMenu>
                        </AppointmentContextMenus>
                          <ResourceTypes>
        <telerik:ResourceType KeyField="ID" Name="Room" TextField="RoomName" ForeignKeyField="RoomID"
            DataSourceID="RoomsDataSource"></telerik:ResourceType>
        
    </ResourceTypes>
                           <ResourceStyles>
                                
        <telerik:ResourceStyleMapping Type="User" Text="Alex" ApplyCssClass="rsCategoryBlue"></telerik:ResourceStyleMapping>
        <telerik:ResourceStyleMapping Type="User" Text="Bob" ApplyCssClass="rsCategoryOrange"></telerik:ResourceStyleMapping>
        <telerik:ResourceStyleMapping Type="User" Text="Charlie" ApplyCssClass="rsCategoryGreen"></telerik:ResourceStyleMapping>
    </ResourceStyles>
                    </telerik:RadScheduler>

     

  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 03 Mar Link to this post

    Hello,

    You are observing the headers having an interval of 10 minutes because the TimeLabelRowSpan property is set to 2 by default. This property controls how many rows are included in each header, so in fact you are seing that betwee 10:10 and 10:20 there are two rows. 

    If  you want to have each row having its own header, try setting TimeLabelRowSpan="1" in the Scheduler.

    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David
    David avatar
    5 posts
    Member since:
    Feb 2016

    Posted 03 Mar in reply to Bozhidar Link to this post

    Hi Thanks for the reply we will be making a purchase today for def it will be an aperture account creating it.

     

    I was wanting to show you that while I set the above its still showing as such

     

    Below is a screen shot.

     

    https://nimbus.everhelper.me/client/notes/share/410582/0a7ruwdv3gnadz91y6qi

    <telerik:RadScheduler runat="server" Skin="Bootstrap" ID="apertureAppointments" Width="100%" DataKeyField="ID" DataSubjectField="Subject"
                                       DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule"  DayView-EnableExactTimeRendering="true"
                                       DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True"
                                        RowHeight="30px" RenderMode="Auto" EnableDescriptionField="True" EnableExactTimeRendering="True"
                                       DayStartTime="10:00:00"   TimeLabelRowSpan="1"  FirstDayOfWeek="Monday"  LastDayOfWeek="Friday"  HoursPanelTimeFormat="HH:mm tt"  MinutesPerRow="5">
     
                                       <ExportSettings OpenInNewWindow="True">
                                           <Pdf PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" PageTopMargin="1in" />
                                       </ExportSettings>
                                       <AdvancedForm Modal="True" />

     

     

  5. David
    David avatar
    5 posts
    Member since:
    Feb 2016

    Posted 03 Mar in reply to David Link to this post

    One other question to is it also possible to change the slection in the edit form of appointment again i have to show the starting at 10:00 then every five mins to five ie 10:05 10:10  10:15 - 5:00
  6. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 07 Mar Link to this post

    Hi,

    I've attached a sample page that demonstrates the property working as expected. Could you run the page on your end and verify if it works as expected on your end as well?

    As for the TimePicker, the following article explains how you can access controls inside the advanced form and change their properties:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/customizing-the-advanced-form/handling-formcreated

    Hope this was helpful.

    Regards,
    Bozhidar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017