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

Time Offset

4 Answers 35 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
debett
Top achievements
Rank 1
debett asked on 29 Jul 2010, 04:27 PM
Hi all,

As you can see on the attached images - there are two appointments between 8 am and 10 am.
The first appointment starts at 8.30, but visually shown as starting at 8.00.

The second appointment has time 9:25 - 10:10, but telerik visually shows this appointment ending well before 10.00 am mark.

So it seems like the left portion with time has nothing to do with the appointments:( 


Thank you.

4 Answers, 1 is accepted

Sort by
0
debett
Top achievements
Rank 1
answered on 29 Jul 2010, 04:29 PM
Oh, yeah, forgot my files.

See them attached.


0
Peter
Telerik team
answered on 29 Jul 2010, 04:33 PM
Hi debett,

Please, send us your RadScheduler settings so we can test them locally.

Regards,
Peter
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
Stephanie
Top achievements
Rank 1
answered on 16 Dec 2010, 04:31 PM
Was there ever an answer to this question?  I am having the same problem.  All of my appointment start times are shifted back 1/2 hour in the week and day view.  Any suggestions are greatly appreciated.  Thank you!!

  My scheduler is setup as:
<telerik:RadScheduler runat="server" ID="RadScheduler1" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
    DataKeyField="CompanyEventId" DataSubjectField="title" DataStartField="StartDate"
    DataEndField="EndDate" EnableDescriptionField="true" EnableEmbeddedSkins="true"
    OverflowBehavior="expand" StartEditingInAdvancedForm="true" EnableCustomAttributeEditing="true"
    StartInsertingInAdvancedForm="true" ShowAllDayRow="false" DataRecurrenceField="RecurrenceRule"
    SelectedView="monthView" DataRecurrenceParentKeyField="RecurrenceParentID" AllowDelete="false"
     DisplayRecurrenceActionDialogOnMove="true" >
    <AdvancedForm Modal="true" MaximumHeight="500" />
    <Reminders Enabled="true" />
    <AppointmentTemplate>
        <asp:Literal ID="AppointmentSubject" runat="server" Text='<%# Eval("subject") %>'></asp:Literal>
        (<asp:Literal ID="AppointmentStartTime" runat="server" Text='<%# Eval("start", "{0:t}") %>'></asp:Literal>
        -
        <asp:Literal ID="AppoitmentEndTime" runat="server" Text='<%# Eval("End", "{0:t}") %>'></asp:Literal>)
    </AppointmentTemplate>
    <AdvancedInsertTemplate>
        <div class="rsAdvancedEdit" style="position: relative">
            <scheduler:AdvancedForm ID="ctlAdvancedForm" runat="server" />
        </div>
    </AdvancedInsertTemplate>
    <AdvancedEditTemplate>
        <div class="rsAdvancedEdit" style="position: relative">
            <scheduler:AdvancedForm ID="ctlAdvancedForm" runat="server" />
        </div>
    </AdvancedEditTemplate>
    <TimelineView UserSelectable="false" />
    <TimeSlotContextMenuSettings EnableDefault="true" />
    <AppointmentContextMenuSettings EnableDefault="true" />
</telerik:RadScheduler>

Attached is an image of what I am seeing. 
I've stepped through the code and when I set the radscheduler datasource, the appointment times are set correctly.  But when I look at the page source, I notice the times are 1 minute less than they should be.  So 9:30 is 9:29.  Such as:

{\"domElements\":[\"ctl00_cphContent_uc3_RadScheduler1_7_0\"],\"id\":125,\"visible\":true,\"subject\":\"standalone event\",\"description\":\"\",\"toolTip\":\"standalone event: 12/16/2010 7:30:00 AM - 12/16/2010 9:30:00 AM\",\"recurrenceState\":0,\"internalID\":\"/wECfQ==\",\"start\":\"2010/12/16 07:29\",\"end\":\"2010/12/16 09:29\"}








0
Stephanie
Top achievements
Rank 1
answered on 16 Dec 2010, 05:00 PM
Never mind.  It is resolved.  I had the following line in my Page_Load:

Me

 

.RadScheduler1.TimeZoneOffset = New TimeSpan(CurrentTimeZone)

Once I commented it out, it solved the problem.  Not sure why, but it's working correctly now.  Thanks!

 

Tags
Scheduler
Asked by
debett
Top achievements
Rank 1
Answers by
debett
Top achievements
Rank 1
Peter
Telerik team
Stephanie
Top achievements
Rank 1
Share this question
or