Can't get time to update

2 posts, 0 answers
  1. Susan
    Susan avatar
    137 posts
    Member since:
    Jul 2007

    Posted 27 May 2010 Link to this post

    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

     

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top