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

Can't get time to update

1 Answer 22 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 27 May 2010, 05:07 PM
i am using a custom appointment form. all works well when i insert a new event. however, if i try to modify an event, i am not able to obtain the time from the control. it puts it at 12:00:00.

 

<telerik:radscheduler id="RadScheduler1" runat="server" Skin="WebBlue" Height="460px"

 

 

OnAppointmentDelete="RadScheduler1_AppointmentDelete" StartEditingInAdvancedForm="false" OnAppointmentCreated="RadScheduler1_AppointmentCreated"

 

 

OnClientAppointmentInserting="AppointmentInserting" OnClientAppointmentEditing="AppointmentEditing">

 

 

<AppointmentTemplate>

 

 

<asp:Label runat="server" ID="lblEventName" />

 

 

</AppointmentTemplate>

 

 

 

</telerik:radscheduler>

 


It is this line of code that causes the problem:

startDateString =

"#" & Format(StartDate.SelectedDate, "MM/dd/yyyy")

 

startTimeString = StartTime.SelectedDate.Value.ToShortTimeString &

"#"

 

CalendarEventBE.EventStartTime =

CDate(startDateString & " " & startTimeString)

As an example, I inserted an appointment then tried to change the date from 6/1 4:45pm to 6:15pm to: 6/3 5:00pm to 7:00pm. I changed the information on my screen and clicked 'Update'. Here are the values of the above:

startDateString = "#06/03/2010"
startTimeString = "12:00 AM#"  HERE IS THE PROBLEM. Why is this not returning my time??? It works fine on the insert.

Thanks and let me know if you need additional information.

Susan

 

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 28 May 2010, 04:12 PM
Hello Susan,

The provided information is not sufficient for us to determine the cause of the problem. Please, send us the entire aspx and code-behind code, or open a support ticket and attach there your page.


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.
Tags
Scheduler
Asked by
Susan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or