links not visible in Scheduler...

2 posts, 0 answers
  1. mark baer
    mark baer avatar
    142 posts
    Member since:
    Sep 2009

    Posted 21 Dec 2012 Link to this post

    I am having difficulties getting the links to show up on the scheduler(See attached file).  I tried putting a scheduler on a page, just loading a few "Appointments" of the Telerik type, then binding them to the RadScheduler.  They are kind of appearing on the correct date, but they are VERY skinny...Not sure what I am doing wrong...Below is the code I used to create the Appointments.

    thanks

    mark

     List<Appointment> appointments = new List<Appointment>();

                Appointment app1 = new Appointment();
                app1.Subject = "Appt1";
                app1.Description = "App Desc";
                app1.Start = new DateTime(2012, 12, 17);
                app1.End = new DateTime(2012, 12, 17);
                app1.ID = 1;

                appointments.Add(app1);

                Appointment app2 = new Appointment();
                app2.Subject = "Appt2";
                app2.Description = "App Desc";
                app2.Start = new DateTime(2012, 12, 20);
                app2.End = new DateTime(2012, 12, 20);
                app2.ID = 2;


                appointments.Add(app2);

                RadScheduler1.DataSource = appointments;
                RadScheduler1.DataStartField = "Start";
                RadScheduler1.DataEndField = "End";
                RadScheduler1.DataSubjectField = "Subject";
                RadScheduler1.DataKeyField = "ID";
                RadScheduler1.DataBind();


    Here is my markup for the RadScheduler...
    <telerik:RadScheduler ID="RadScheduler1" runat="server" AppointmentStyleMode="Default" Height="600" SelectedView="MonthView" ItemType="Telerik.Web.UI.Appointment"></telerik:RadScheduler>

    My controls are from Q1 of THIS year...License ran out so I can't upgrade...ugh...

    HELP???

    thanks
  2. Bozhidar
    Admin
    Bozhidar avatar
    1189 posts

    Posted 26 Dec 2012 Link to this post

    Hi Mark,

    This is happening because you are setting the exact same date as the start and end time of each appointment. In order for the appointments to be valid the end date must be greater than the start date. Try setting the end dates of the appointments to the following values and they should display properly:
    ...
    app1.Start = new DateTime(2012, 12, 17);
    app1.End = new DateTime(2012, 12, 18);
    ...
    app2.Start = new DateTime(2012, 12, 20);
    app2.End = new DateTime(2012, 12, 21);
    ...

     
    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top