albertogreco
Posts: 2
|
| Posted: 02/12/2009, 1:11 PM |
|
I am using the very good feature of dependent listbox.
It works very well when I change the selection on the master listbox.
After the selection if I refresh the page have: the master listbox maintaining the previously selected value but the second listbox empty.
To fill the second listbox I will have to change the selection in the master one two times: the first one to change to a different value, the second one to re-select the original value.
How can avoid the problem?
Do you know a work around?
|
 |
 |
damian
Posts: 838
|
| Posted: 02/12/2009, 1:13 PM |
|
does the same for me to...
i have noticed this behaviour on other websites - it appears to be a limitation
why are users refreshing a page that they are inserting data into?
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
mentecky
Posts: 321
|
| Posted: 02/12/2009, 1:48 PM |
|
albertogreco,
You have to call the JavaScript function that invokes the AJAX call when your master listbox is changed. You can find the function in the bindings section of the HTML. It's normally a really long name.
I can't recall where I put the call but I think it was on the dependent listbox's On Load event. The parameter is the master listbox. My code looks like this:
employee_house_resident_ss_ResidentIDPTDependentListBox1_start(document.forms["employee_house_resident_s"].s_HouseID);
Good luck,
Rick
_________________
http://www.ccselite.com |
 |
 |
|