find control inside AppointmentTemplate in javascript OnClientAppointmentClick event

3 posts, 0 answers
  1. Mangesh
    Mangesh avatar
    16 posts
    Member since:
    Sep 2011

    Posted 07 Sep 2012 Link to this post

    Hi, I want to find control i.e. place inside AppointmentTemplate OnClientAppointmentClick event in Javascript. I've searched for many forums but didn't find anything related to javascript findcontrol.

    Thanks in Advance,
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 10 Sep 2012 Link to this post

    Hello Mangesh,

    I believe the approach below will be helpful in your case:

    // JavaScript
    function OnClientAppointmentClick(sender, eventArgs)
        var customControlID = $find("<%= CustomControlID.ClientID %>");

    //aspx file

    <telerik:RadScheduler  ID="CustomControlID"  runat="server"   

    You can use it to access different controls on your page and their properties and functions.

    Boyan Dimitrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Mangesh
    Mangesh avatar
    16 posts
    Member since:
    Sep 2011

    Posted 10 Sep 2012 Link to this post

    Hi Boyan,

    I want to find control inside AppointmentTemplate of Radscheduler i.e.

    <telerik:RadScheduler  ID="CustomControlID"  runat="server"   
    OnClientAppointmentClick="OnClientAppointmentClick" >
                                <div class="AppointmentColorizedHolder">
                                    <asp:Panel ID="pnlAppointmentColorizedHolder" CssClass="AppointmentColorized" runat="server">
                                        <%# Eval("Subject") %>
                                        <asp:HiddenField id="hdfPatientID" runat="Server">

    In this case, I want to find hdfPatientID on OnClientAppointmentClick event.

Back to Top