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

e.Appointment.ID and e.Appointment.ClientID

2 Answers 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 27 Feb 2008, 05:08 PM
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 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 28 Feb 2008, 08:06 AM
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
0
Piyush Bhatt
Top achievements
Rank 2
answered on 28 Feb 2008, 03:29 PM
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
Tags
Scheduler
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Piyush Bhatt
Top achievements
Rank 2
Share this question
or