Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Cascading DropdownList Disable

$
0
0

Hello

I have cascading Dropdownlist gets populated with a Webservice and I need to disable that dropdownlist. I tried adding a handler but no use.

on aspx page

<script type="text/javascript">

 function pageLoad(sender, args) {
            $find("cddl").add_populated(DisableDDL);
        
        }

        function DisableDDL() {
          
            $get("ddlCountry").disabled = true;

</script>

//Control on PAGE

<tr><td> Select Country:</td><td>
           <asp:DropDownList ID="ddlCountry" runat="server"></asp:DropDownList>
           <asp:CascadingDropDown ID="CountryCascading" runat="server" Category="Country"  BehaviorID="cddl"
            TargetControlID="ddlCountry" LoadingText="Loading Countries..." PromptText="Select Country"
            ServiceMethod="BindCountry" ServicePath="testServ.asmx">
       </asp:CascadingDropDown> </td></tr>

I don't know what I'm missing. I really appreciates any insight.

Thanks

Rao


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>