Hi,
Data is not shown in the calender while binding. But, when i place it on by mouse, the name is shown in the tool tip.
I've uploaded my image for your preview.
Data is not shown in the calender while binding. But, when i place it on by mouse, the name is shown in the tool tip.
I've uploaded my image for your preview.
.aspx page:
----------
<telerik:RadScheduler runat=
"server"
ID=
"RadScheduler1"
Height=
"500px"
Skin=
"Web20"
CustomAttributeNames=
"StartTime,EndTime,SessionDate,DisplayPermitName,EventStartDate,EventEndDate"
ShowViewTabs=
"true"
ShowHeader=
"true"
ShowFooter=
"true"
SelectedDate=
"2010-07-10"
DataStartField=
"EventStartDate"
DataEndField=
"EventEndDate"
EnableDescriptionField=
"true"
AppointmentStyleMode=
"Default"
DayStartTime=
"08:00:00"
DayEndTime=
"21:00:00"
Visible=
"true"
DataKeyField=
"ID"
ReadOnly=
"false"
FirstDayOfWeek=
"Monday"
LastDayOfWeek=
"Friday"
DataSubjectField=
"DisplayPermitName"
ColumnWidth=
"100px"
EnableEmbeddedSkins=
"false"
AllowDelete=
"false"
AllowEdit=
"false"
AllowInsert=
"false"
OnNavigationComplete=
"radScheduler1_NavigationComplete"
>
<AdvancedForm Modal=
"true"
/>
<AppointmentTemplate>
<%-- <%--Permit Name--%>
<asp:Label runat=
"server"
Text=
'<%# Eval("DisplayPermitName")%>'
ID=
"labelDisplayPermitName"
Text=
"Permit Name :"
>
</asp:Label>
<br />
<%--Start Time--%>
<asp:Label runat=
"server"
ID=
"labelStartTime"
Text=
"Start Time :"
>
<%# Eval(
"StartTime"
)%>
<br />
</asp:Label>
<%--End Time--%>
<asp:Label runat=
"server"
ID=
"labelEndTime"
Text=
"End Time : "
>
<%# Eval(
"EndTime"
)%>
<br />
</asp:Label>
<%--Session Date--%>
<asp:Label runat=
"server"
ID=
"labelSessionDate"
Text=
"Session Date :"
>
<%# Eval(
"SessionDate"
)%>
</asp:Label>
<br />
</AppointmentTemplate>
</telerik:RadScheduler>
.cs Page
--------
/// <summary>
/// Populates the controls with data from the Business Objects.
/// ClassReg20 User Interface will perform the concrete implementation of this method.
/// </summary>
protected
override
void
FillControls()
{
try
{
this
.AdminController.State.Session.Schedule =
new
Schedule(userSession);
this
.AdminController.State.Session.Schedules =
this
.AdminController.RetrieveAllEventSchedules();
this
.RadScheduler1.DataSource =
this
.AdminController.State.Session.Schedules;
DateTime dataStartTime = DateTime.Parse(
this
.AdminController.State.Session.Schedules[0].SessionDate.ToString());
//this.RadScheduler1.DataStartField = dataStartTime.ToString("u").Substring(0, 10);
DateTime dataEndTime = DateTime.Parse(
this
.AdminController.State.Session.Schedules[
this
.AdminController.State.Session.Schedules.Count - 1].SessionDate.ToString());
//this.RadScheduler1.DataEndField = dataEndTime.ToString("u").Substring(0, 10);
foreach
(Schedule schedule
in
this
.AdminController.State.Session.Schedules)
{
dataStartTime = DateTime.Parse(schedule.SessionDate.ToString());
dataEndTime = DateTime.Parse(schedule.SessionDate.ToString());
schedule.EventStartDate = dataStartTime.ToString(
"u"
).Substring(0, 10);
schedule.EventEndDate = dataEndTime.ToString(
"u"
).Substring(0, 10);
}
this
.RadScheduler1.DataBind();
}
}
Thanks,
Janni Daniel.B