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

Howto: OnClick display description of appointment in a textbox

1 Answer 45 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 25 Aug 2011, 04:09 PM
Hi
On double-click a user can addnew or edit existing appointment item.

what i want to do is when user single clicks on exiting appointment item, i want to display description is a textbox
which is located outside scheduler control on a page.

Regards

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivana
Telerik team
answered on 29 Aug 2011, 05:17 PM
Hi Lee,

Try using the client-side event OnClientAppointmentClick.
Here is an example of how you could do it:
function OnClientAppointmentClick(sender, args) {
 
    var appt = args.get_appointment();
    var apptDescription = appt.get_description();
    var textBox = $telerik.$("[id$='TextBox1']");
    textBox[0].value = apptDescription;
}

Hope this helps.

Kind regards,
Ivana
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Scheduler
Asked by
Lee
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or