I have cascading dropdownlists and use JavaScript to change the selected value in a parent dropdownlist. The list items in the child dropdownlist do not change as they should when the selected parent value changes. Any thoughts on how Javascript can force
the child dropdownlist to requery?
I know this is a really old Thread but just in case anyone stumbles upon this problem here would be one solution to refresh a cascadedropdown from javascript.
However, I have no idea how this is to fit in to JavaScript or Page_Load. I have two dropdownlist, d1 and d2. d2 has a cascading extender, d2c. What event handlers should be called? Where does the code go, and what
exactly should it look like?
Ken MacLeod
Member
17 Points
61 Posts
Cascading dropdownlist: How to force a requery
Aug 11, 2012 07:21 AM|LINK
I have cascading dropdownlists and use JavaScript to change the selected value in a parent dropdownlist. The list items in the child dropdownlist do not change as they should when the selected parent value changes. Any thoughts on how Javascript can force the child dropdownlist to requery?
Ken MacLeod
Member
17 Points
61 Posts
Re: Cascading dropdownlist: How to force a requery
Aug 11, 2012 11:37 AM|LINK
I have found an old thread with the following:
Re: How to refresh CascadingDropDown from client side javascript
02-28-2010 11:46 PM|LINK
<div>I know this is a really old Thread but just in case anyone stumbles upon this problem here would be one solution to refresh a cascadedropdown from javascript.
Setup context key:
$find('CascadingDropDown_BehaviorID')._contextKey = 'newvalue';
Simply call this to refresh (populate) the dropdown:
$find('CascadingDropDown_BehaviorID')._onParentChange(null,false);
Regards,
Sebastian Andres
However, I have no idea how this is to fit in to JavaScript or Page_Load. I have two dropdownlist, d1 and d2. d2 has a cascading extender, d2c. What event handlers should be called? Where does the code go, and what exactly should it look like?
Any help appreciated?
</div>