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

Problem with binding appoinments

1 Answer 43 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
chinnu
Top achievements
Rank 1
chinnu asked on 14 Jan 2012, 06:23 AM
I am using rad scheduler for fixing appointments for doctors.

markup of telerik
-----------------------

<

telerik:RadScheduler runat="server" ID="scheduleApp1" EnableDescriptionField="True" MinutesPerRow="10" onappointmentinsert="scheduleApp1_AppointmentInsert"> <Reminders Enabled="True" /> <WebServiceSettings><ODataSettings InitialContainerName=""></ODataSettings> </WebServiceSettings> </telerik:RadScheduler>

 


//--------------------------------code of first issue------------------

 

private void FillSchedule()

 

{

scheduleApp1.DataKeyField = "ID";

 scheduleApp1.DataStartField = "Start";

 scheduleApp1.DataEndField = "End";

 scheduleApp1.DataSubjectField = "Subject";

 scheduleApp1.DataRecurrenceField = "RecurrenceRule";

 scheduleApp1.DataRecurrenceParentKeyField = "RecurrenceParentID";

 ResourceType rt = new ResourceType("Doctors");

 rt.DataSource = objbl.GetDoctors();

 rt.KeyField = "emp_id";

 rt.ForeignKeyField = "emp_id";

 rt.TextField = "Emp_Name";

 scheduleApp1.ResourceTypes.Add(rt);

 scheduleApp1.GroupBy = "Doctors";

 scheduleApp1.DataSource = objdb.GetAppointments(scheduleApp1);

 

}


But none of the  appointments I saved in db are populating in the scheduler.

Please help..Urgent..

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 17 Jan 2012, 02:13 PM
Hi chinnu,

Please, try calling scheduleApp1.DataBind(), after specifying the DataSource property. Does this help?

All the best,
Peter
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
chinnu
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or