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

links not visible in Scheduler...

1 Answer 30 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
mark baer
Top achievements
Rank 1
mark baer asked on 21 Dec 2012, 10:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 26 Dec 2012, 08:02 AM
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.
Tags
Scheduler
Asked by
mark baer
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or