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

How to get ID of the appointment

1 Answer 100 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sudheep
Top achievements
Rank 1
Sudheep asked on 24 Jul 2008, 08:47 AM
Hi,
I have a link button inside the Appointment Template, and have 2 appointment for a day. How can I  get the ID of  the clicked appointment in the link button's onclick event?

Regards
Sudheep

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 25 Jul 2008, 02:07 PM
Hello Sudheep,

You could handle the AppointmentDataBound event of the Scheduler and in the event handler find the LinkButton control and set its CommandArgument property to the ID of the current Appointment.

Later, in the click event handler of the LinkButton, you can easily get the CommandArgument (the ID of the Appointment) and proceed with further operations.

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Sudheep
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or