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.
Please guide me.
Thanks,
Hema L.
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.