Find RadComboBox at JavaScript without <%= xxxxxx.ClientID %>

1 posts, 0 answers
  1. Paulo Goncalves
    Paulo Goncalves avatar
    28 posts
    Member since:
    Aug 2004

    Posted 21 Dec 2017 Link to this post


    I have a form with many checkbox and each checkbox has a RadCombo or RadTextBox beside. When checkbox change, the application need enable or disable the respective RadComboBox or RadTextBox. 

    When I use with RadTextBox was working fine. But I call the RadComBox the $Find JQuery return null. 

    I would like have one or twice(combo and text) Javascript function. I don´t like create one JS with <RadComboBoxXX.ClientID> for each ComboBox. And don´t use server code.


    Thanks for any help.

    <script type="text/javascript">
            function EnableDisable(chk, ctrl) {
                var e = $find(ctrl);
                if(chk) {
                else {
    ---- Work Fine----
    <asp:Checkbox ID="CheckBox1" runat="server"  OnClick="EnableDisable(this.checked,'RadTextBox1');"/>
    <telerik:RadTextBox ID="RadTextoBox1" runat="server" />
    ---- Don´t work ----
    <asp:Checkbox ID="CheckBox2" runat="server"  OnClick="EnableDisable(this.checked,'RadComboBox2');"/>
    <telerik:RadComboBox ID="RadComboBox2" runat="server" />



Back to Top