Howto: OnClick display description of appointment in a textbox

2 posts, 1 answers
  1. Lee
    Lee avatar
    49 posts
    Member since:
    Feb 2010

    Posted 25 Aug 2011 Link to this post

    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
  2. Answer
    Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 29 Aug 2011 Link to this post

    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 >>

Back to Top