RadScheduler Docs error III

2 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 16 Oct 2010 Link to this post

    The FormCreated example code contains an error; you can't assign e.Container.Appointment.Start (a DateTime) directly to a string (startDate.Text).

    -- 
    Stuart
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 21 Oct 2010 Link to this post

    Hi Stuart Hemming,

    Yes, you are right. It needs to be
     
    void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
    {
      if (e.Container.Mode == SchedulerFormMode.Insert)
      {
          Label startDate = (Label) e.Container.FindControl("StartDate");
          startDate.Text = e.Container.Appointment.Start.ToString();
      }
    }

    Thank you for reporting this!

    Greetings,
    Veronica Milcheva
    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