Mark Richman
Mark Richman

Reputation: 29710

How to call ASP.NET AJAX CascadingDropDown raiseSelectionChanged()

Anyone know how to do this?

This does not work: $get("<%= cddToCompetition.ClientID %>").raiseSelectionChanged(null);

I have two separate CascadingDropDown controls, where a change in control A should trigger a change in control B (the one in my example). Control A is not the parent of B.

Upvotes: 0

Views: 908

Answers (1)

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

What if you add AsyncPostBackTrigger trigger

<Triggers>
    <asp:AsyncPostBackTrigger ControlID="yourParentControldID" EventName="SelectedIndexChange" />        
</Triggers>

Edit:

document.getElementById('<%=yourDropdown.ClientId%>').onchange();

also check this thread fire-dropdown-selectedindexchanged-event-in-javascript

Upvotes: 1

Related Questions