views:

48

answers:

1

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.

+1  A: 

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

Muhammad Akhtar
reason please ?
Muhammad Akhtar
I think that would only work in an UpdatePanel. Here, I have two separate CascadingDropDown controls, where a change in control A should trigger a change in control B. Control A is *not* the parent of B.
Mark Richman
@Mark; ooh I misunderstood, now check my edit portion. Thanks
Muhammad Akhtar