e.Appointment.ID and e.Appointment.ClientID

3 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 27 Feb 2008 Link to this post

    I am trying to use the CLIENT ID for the tooltip.

    In AppointmentCreated event, I see that e.Appointment.ID value is correct appointment id value, but the client id is like:

    ctl00_ContentPlaceHolder1_RadScheduler1_2_0
    ctl00_ContentPlaceHolder1_RadScheduler1_3_0

    I thought the last _0 is supposed to be the appointment id - isn't that true? How do I get the Client ID reflect the appointment id?

  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 28 Feb 2008 Link to this post

    Hello Piyush,

    When an appointment spans several days it is rendered in parts. The last number in the ClientID is the appointment part index. You will receive an AppointmentCreated event for each part about to be rendered. The actual ID is the previous integer.

    You should supply the complete ClientID to RadToolTip, as it is the id of the actual div element, that holds the appointment.

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 28 Feb 2008 Link to this post

    Well, I was supplying the full ClientID to tooltip and tooltip was getting displayed. Issue was to fetch the AppointmentId from this target control id in AjaxUpdate method of tooltip.

    My appointments are not multi-day - so I believe I could ignore the last _0 thing.

    Anyhow, I finally removed the tooltip manager and loaded tooltips dynamically during AppointmentCreated event and that worked fine.

    Thanks,
    Piyush
Back to Top