Setting of time duration, starttime, endtime

2 posts, 0 answers
  1. Hemamalini
    Hemamalini avatar
    35 posts
    Member since:
    Jul 2010

    Posted 13 Aug 2011 Link to this post

    Hi,

        I use RadScheduler in my Project. For me the scheduleviewtype, starttime, endtime, and the time interval data comes from another screen. How to set starttime, endtime for scheduler, and how to set duration of hrs in the scheduler like 15min, 30min, 60min. 
    <div id="divSchedular" runat="server">
                    <div style="width: 810px; background: transparent url('Images/background.png') no-repeat 0 0;
                        padding-left: 20px;">
                        <telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Web20" CustomAttributeNames="DisplayStartTime,EventRecurrenceId, EventColor, DisplayEndTime, StartDate,EndDate,DisplayPermitName,DisplayFacilityVisibility,DisplayClientVisibility,DisplayResourceVisibility,Id,DisplayPermitVisibility,DisplayFacilityname,DisplayResourceName,DisplayClientName"
                            DataStartField="StartDate" EnableDatePicker="true" GroupingDirection="Horizontal"
                            EnableEmbeddedSkins="true" DataDescriptionField="EventColor" MonthView-GroupingDirection="Horizontal"
                            DataEndField="EndDate" ShowFullTime="true" DataKeyField="Id" DataRecurrenceParentKeyField="EventRecurrenceId"
                            DataRecurrenceField="EventRecurrenceId" FirstDayOfWeek="Sunday" LastDayOfWeek="Saturday"
                            DataSubjectField="DisplayPermitName" AllowDelete="false" AllowEdit="false" TimelineView-NumberOfSlots="7"
                            AllowInsert="false" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound">
                            <advancedform modal="true" />
                            <%--daystarttime="08:00:00" dayendtime="23:00:00"--%>
                            <appointmenttemplate>
                                    <div>
                                        <table>
                                            <tr>
                                                <td id="divColorChange" runat="server" width="0.5%">
                                                    <div>
                                                           
                                                    </div>
                                                </td>                                       
                                                <td>
                                                    <%--CustomAttributeNames="StartTime,EndTime,SessionDate,DisplayPermitName,StartDate,DisplayClientVisibility,DisplayResourceVisibility,DisplayFacilityVisibility,EndDate,ID,DisplayPermitVisibility,DisplayFacilityName,DisplayResourceName,DisplayClientName,Event_ID,DisplayRoomNumber"--%>
                                                    <div class="AlignCenter">
                                                        <%--Permit Name--%>
                                                        <asp:Image ID="imageRecurrenceIcon" runat="server" ImageUrl="~/Images/Icon_Info.gif" />
                                                        <asp:LinkButton runat="server" ID="lblDisplayPermitName" OnClick="RedirectToEventMaintenance"
                                                            Style="font-weight: bold; color: Black; word-wrap: break-word; font-size: 12px;"
                                                            Visible='<%# Convert.ToBoolean(Eval("DisplayPermitVisibility")) %>' CommandArgument='<%# Eval("Id") + "~" + Eval("StartDate")%>'> 
                            <%# Eval("DisplayPermitName")%>
                                                        </asp:LinkButton>
                                                        <asp:Label ID="labelPermitName" Style="font-weight: normal; color: Black; word-wrap: break-word;
                                                            font-size: 10px;" runat="server" Text='<%# Eval("DisplayPermitName")%>' CssClass="FontBold"></asp:Label>
                                                        <br />
                                                        <%--Start Time--%>
                                                        <%--End Time--%>
                                                        <asp:Label runat="server" ID="lblStartTime" Style="font-weight: normal; word-wrap: break-word;
                                                            color: Black; font-size: 10px; text-align: left; float: left;">
                                                        <%# Eval("DisplayStartTime")%></asp:Label>
                                                        -
                                                        <asp:Label runat="server" ID="lblEndTime" Style="font-weight: normal; word-wrap: break-word;
                                                            color: Black; font-size: 10px; text-align: left; float: left;">
                                                        <%# Eval("DisplayEndTime")%></asp:Label>
                                                        <br />
                                                        <%--Client Name--%>
                                                        <asp:Label runat="server" ID="lblDisplayClientTypeName" Style="font-weight: normal;
                                                            word-wrap: break-word; color: Black; font-size: 10px; width: 95px; text-align: left;
                                                            float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayClientVisibility")) %>'>
                                <%# Eval("DisplayClientName")%>
                                                        </asp:Label><br />
                                                        <%--Text="<left>Client :</left>"--%>
                                                        <%--Facility Name--%>
                                                        <asp:Label runat="server" ID="lblDisplayFacilityName" Style="font-weight: normal;
                                                            color: Black; font-size: 10px; word-wrap: break-word; width: 95px; float: left;
                                                            float: left; text-align: left; float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayFacilityVisibility")) %>'>
                                <%# Eval("DisplayFacilityname")%>
                                                        </asp:Label><%--Text="<left>Facility :</left>"--%>
                                                        <br />
                                                        <%--Resource Name--%>
                                                        <asp:Label runat="server" ID="lblDisplayResourceName" Style="font-weight: normal;
                                                            color: Black; font-size: 10px; word-wrap: break-word; width: 95px; text-align: left;
                                                            float: left;" Visible='<%# Convert.ToBoolean(Eval("DisplayResourceVisibility")) %>'>
                                <%# Eval("DisplayResourceName")%> 
                                                        </asp:Label><br />
                                                        <%--Text="<left>Resource :</left>" --%>
                                                        <%--Resource Name--%>
                                                        <asp:Label runat="server" ID="Label2" Style="font-weight: normal; width: 95px; color: Black;
                                                            font-size: 10px; text-align: left; word-wrap: break-word; float: left;"><%-- Text="<left>Room :</left>"--%>
                                <%# Eval("DisplayResourceName")%> 
                                                        </asp:Label><br />
                                                        <br />
                                                        <asp:LinkButton ID="linkButtonMore" Style="font-weight: bold; width: 95px; color: Black;
                                                            font-size: 10px;" runat="server" Text="More"></asp:LinkButton>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </appointmenttemplate>
                        </telerik:RadScheduler>
                    </div>
                    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="420" Height="300"
                        ToolTipZoneID="RadScheduler1" Animation="Resize" HideEvent="LeaveToolTip" Text="Loading..."
                        RelativeTo="Mouse" OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" OnClientBeforeShow="clientBeforeShow">
                    </telerik:RadToolTipManager>
                </div>

    Please guide me.

    Thanks,
    Hema L.
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 15 Aug 2011 Link to this post

    Hi Hemamalini,

     You have listed the properties almost as they really are directly on the RadScheduler server instance.
    Here is the members of the RadScheduler type: http://www.telerik.com/help/aspnet-ajax/allmembers_t_telerik_web_ui_radscheduler.html

    You can check the DayStartTime, DayEndTime and MinutesPerRow properties.

    Regards,
    Nikolay Tsenkov
    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.

Back to Top