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

Text is not shown in the Calender while Binding

2 Answers 22 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Janni
Top achievements
Rank 1
Janni asked on 13 Aug 2010, 12:52 PM
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.

.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

2 Answers, 1 is accepted

Sort by
0
Janni
Top achievements
Rank 1
answered on 16 Aug 2010, 06:22 AM
Hi All,

Did anyone  have idea for the above issue??
i didn't get any solution and response yet.

Thanks,
Daniel.B
0
Jerry T.
Top achievements
Rank 1
answered on 23 Aug 2010, 09:37 PM
Daniel,

Check the time value for your End Time.  I was testing a RadScheduler for the first time and our events are just date values and I was getting a similar UI result as you have. I manually updated one event's EndDate to include a time value of 23:59:59 and it now shows up properly.

Just a thought.

JT
Tags
Scheduler
Asked by
Janni
Top achievements
Rank 1
Answers by
Janni
Top achievements
Rank 1
Jerry T.
Top achievements
Rank 1
Share this question
or