I have a Dialog. The dialog contains a number of Containers. For the purpose of this post, let us say I have three Containers.
Container "A" surrounds both Containers "B" and "C" which are independent of one another (not contained within one another).
Container "B" contains, among other things, a Button. This B.Button is coded in OnClick to Show Container "C".
Container "C" contains a DropDownBox and a Button. This C.Button is coded in Onclick to hide its own container (Container "C"). This C.DropDownBox is configured to permit multiple selections as a PickList.
So the user clicks B.Button to open, view, and choose items from C.DropDownBox. Once the user has made all selections, he clicks C.Button to hide Container "C".
THE PROBLEM:
When the user makes his first selection (click) within C.DropDownBox, the entire Container "C" closes immediately.
Oddly, though, if the user AGAIN clicks B.Button, Container "C" does open again as expected. This time, however, Container "C" does not "self-close" upon selections being made in C.DropDownBox. In fact, Container "C" stays open through all variety of actions against the C.DropDownBox (click first entry, click last entry, use "shift" for multiple selection, etc).
I don't understand why the behavior changes.... and I certainly prefer behavior #2: Container "C" should remain open unless/until the user clicks C.Button to hide Container "C".
Anybody have any idea what's going on here? And, more importantly, how to prevent immediate close of Container "C" when the user makes a selection in C.DropDownBox?
Container "A" surrounds both Containers "B" and "C" which are independent of one another (not contained within one another).
Container "B" contains, among other things, a Button. This B.Button is coded in OnClick to Show Container "C".
Container "C" contains a DropDownBox and a Button. This C.Button is coded in Onclick to hide its own container (Container "C"). This C.DropDownBox is configured to permit multiple selections as a PickList.
So the user clicks B.Button to open, view, and choose items from C.DropDownBox. Once the user has made all selections, he clicks C.Button to hide Container "C".
THE PROBLEM:
When the user makes his first selection (click) within C.DropDownBox, the entire Container "C" closes immediately.
Oddly, though, if the user AGAIN clicks B.Button, Container "C" does open again as expected. This time, however, Container "C" does not "self-close" upon selections being made in C.DropDownBox. In fact, Container "C" stays open through all variety of actions against the C.DropDownBox (click first entry, click last entry, use "shift" for multiple selection, etc).
I don't understand why the behavior changes.... and I certainly prefer behavior #2: Container "C" should remain open unless/until the user clicks C.Button to hide Container "C".
Anybody have any idea what's going on here? And, more importantly, how to prevent immediate close of Container "C" when the user makes a selection in C.DropDownBox?