First time here? Check out the FAQ!
Hello All,
I'm using ZK CE-9.0.0.
I have a combobox
which I need to open programmatically, on click of OK
button of the Messagebox
.
Hence I have implemented a Listener
for the click event of the OK
button. Inside the click event, I'm opening the combobox
by using the following code:
EventListener<Messagebox.ClickEvent> clickListener = new EventListener<Messagebox.ClickEvent>() {
@Override
public void onEvent(ClickEvent event) throws Exception {
mycombo.open();
}
};
Messagebox.Button[] buttons = new Messagebox.Button[] {Messagebox.Button.OK};
Messagebox.show("Hi btn", buttons, clickListener);
Now the problem that I'm facing is, the combobox
opens for half a second. It then immediately gets closed automatically.
As per my understanding, it's because of the Messagebox
. Once the execution of the click event is completed, the Messagebox
is closed & it causes the combobox
also to be closed.
Please have a look at this fiddler for better understanding. Please select the ZK version to be 9.0.0 before running it.
Can anyone help me with this please?
Thanks,
RAS
Asked: 2020-04-24 19:12:27 +0800
Seen: 8 times
Last updated: May 04 '20
How to capture onScroll Event of Combobox
combobox does not scroll autocompleted text into view
I want to take different value from label(value) and pass to @bind object
Combobox sometimes clears the selected item
zk combobox filtering option is not working inside listbox .
Zk create custom event for COmbo box?
Fetching Key-Value pair for ComboBox using SimpleListModel
How to set selected combobox when using setModel
ComboBox autocomplete does not work with onOk event [closed]