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

[Solved] Problem with timelineview not displaying appointment accurately

3 Answers 189 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Thomas Salt
Top achievements
Rank 1
Thomas Salt asked on 01 Mar 2010, 07:25 PM
I have a RadScheduler with a SelectedDate of 1/1/2010.  I am using the timeline view with a SlotDuration = 2 and NumberofSlots = 183.  I have a date that spans over 2 years, and yet is only displayed as a 6 month appointment.  I also have another appointment that is supposed to be around 10 months long as is displaying as an appointment around 5-6 months.    Please view attached screen shot to see my issue.  I set the appointment subject texts to the start and end date of the appointments.

Any advice will be helpful.  Below is my HTML for the RadScheduler.



<%@ Page Title="" Language="VB" MasterPageFile="~/NewStims/mpStims.master" AutoEventWireup="false" 
  CodeFile="BigCalendar.aspx.vb" Inherits="NewStims_Events_BigCalendar" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
  <link href="Scheduler.Seths.css" rel="stylesheet" type="text/css" /> 
 
 
  <telerik:RadScheduler ID="scEvents" runat="server" Width="900px" Skin="Seths" 
    SelectedView="TimelineView" EnableEmbeddedSkins="False" CustomAttributeNames="EventStartDate, EventEndDate" 
    EnableCustomAttributeEditing="true" DataKeyField="EventID" DataSubjectField="EventTitle" 
    DataStartField="EventStartDate" FirstDayOfWeek="Monday" CssClass="slotClass" ShowDateHeaders="true" ShowHeader="true" 
     ShowNavigationPane="true" ShowViewTabs="true" LastDayOfWeek="Friday" DataEndField="EventEndDAte" OverflowBehavior="Expand" 
    ShowFooter="false" BackColor="Transparent" > 
    <TimelineView SlotDuration="2" NumberOfSlots="183"   /> 
    <AppointmentTemplate> 
    <div class="divWrap"
    <%#CType(Eval("EventStartDate"), Date).Day.ToString()%> 
    </div> 
      <div style="width:70%;float:left"
      <%#Eval("Subject")%> 
      </div> 
      <div class="divWrap"
      <%#CType(Eval("EventEndDate"), Date).Day.ToString()%> 
      </div> 
    </AppointmentTemplate> 
  </telerik:RadScheduler> 
 


3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Mar 2010, 05:14 PM
Hi Thomas,

Thank you for the detailed description of the problem.

I'm interested to know which version of the controls are you using? Also, does removing the template make any difference?

I assume that you've chosen to show so many time slots in order to visually approximate the exact start and end time of the appointments. We have a simpler solution that achieves the same result, but without additional time slots. Please, take a look at the attached project (test with the latest version of the controls). Maybe it will be a better fit for your scenario?

I hope this helps.

Regards,
Tsvetomir Tsonev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Thomas Salt
Top achievements
Rank 1
answered on 05 Mar 2010, 02:01 PM
Hi Tsvetomir,

Thank you for your reply.  The reason I was showing so many time slots is to simulate an entire year.  The closest I could get was 183 x 2 day slots = 366 days.  I was using a really old (2008 Q3) version of the control.  I upgraded to the newest version, and all seems to be working correctly. If you're curious as to what I was trying to accomplish,  I've attached a screen shot of the document I am trying to replace.

Thanks again for your help.
0
T. Tsonev
Telerik team
answered on 11 Mar 2010, 12:41 PM
Hello Thomas,
 
Great, I'm glad to see that the original issue is resolved.

Your approach is valid, but you should consider the exact time rendering approach from the demo. Less slots means less markup and better performance.

Greetings,
Tsvetomir Tsonev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Thomas Salt
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Thomas Salt
Top achievements
Rank 1
Share this question
or