Problem with binding appoinments

2 posts, 1 answers
  1. chinnu
    chinnu avatar
    21 posts
    Member since:
    Aug 2011

    Posted 14 Jan 2012 Link to this post

    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.GroupBy = "Doctors";

     scheduleApp1.DataSource = objdb.GetAppointments(scheduleApp1);



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

    Please help..Urgent..
  2. Answer
    Peter avatar
    6637 posts

    Posted 17 Jan 2012 Link to this post

    Hi chinnu,

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

    All the best,
    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