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

Trying to show only 5 min intervals

4 Answers 29 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 Mar 2016, 04:11 PM

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>

 

4 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 03 Mar 2016, 08:02 AM
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
0
David
Top achievements
Rank 1
answered on 03 Mar 2016, 08:33 AM

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

 

 

0
David
Top achievements
Rank 1
answered on 03 Mar 2016, 08:36 AM
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
0
Bozhidar
Telerik team
answered on 07 Mar 2016, 07:26 AM
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
Tags
Scheduler
Asked by
David
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
David
Top achievements
Rank 1
Share this question
or