How to Find Appointment In radSheduler Using AppointmentID

3 posts, 0 answers
  1. Radha
    Radha avatar
    8 posts
    Member since:
    Jul 2008

    Posted 10 Aug 2010 Link to this post

    ho to find the Appointment in radSheuler Using  Appointment id

    am trying following Code but it showing Null

    ex : i have 4 appointments ids are{2,4,5,6}. in rad scheduler  Appointments Count showing 4.
     but  RadScheduler1.Appointments.FindByID(2) tin this time Showing null;

    am using Following Code
    protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)
        {

           // Appointment info = (Appointment)RadScheduler1.Appointments.ToArray()[e.Value;
            int aptId;
            Appointment apt;
            if (!int.TryParse(e.Value, out aptId))//The appoitnment is occurrence and FindByID expects a string
                apt = RadScheduler1.Appointments.FindByID(e.Value);
            else //The appointment is not occurrence and FindByID expects an int
                apt = RadScheduler1.Appointments.FindByID(aptId);
         
           // Session["Apt"] = apt;
       
        }

    could u plz help me any susses ion for this problem
  2. Radha
    Radha avatar
    8 posts
    Member since:
    Jul 2008

    Posted 11 Aug 2010 Link to this post

      Appointment apt;
           

     foreach (Appointment apc in RadScheduler1.Appointments)
            {
                if (apc.ID.ToString() == e.Value.ToString())
                {
                    apt = apc;
                    break;
                }
            }

    This is One Way...

    its Working Fine
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    13 posts
    Member since:
    Jul 2010

    Posted 18 Aug 2010 Link to this post

    Thank you, Radha!
Back to Top