EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on January 13, 2017, 02:34:53 AM



Title: dialog + combobox
Post by: rezzonico on January 13, 2017, 02:34:53 AM
Hi all,

I have an annoying effect when using a combobox within a dialog.

Please select the following link:
http://195.144.40.170/jeasyui/TTT/index.html

Step1) Select the button "Open Dialog".
Step2) In the Dialog select a Printer and then close the Dialog.

Repeat the two step three times.
Each time select a different Printer.

As you can see all the previous selected printers remain selected.

Is it possible to avoid this ?

Thanks for any help.
Miche




Title: Re: dialog + combobox
Post by: Pierre on January 13, 2017, 02:46:44 AM
Hello
you can try to destroy your dialog (onClose event).


Title: Re: dialog + combobox
Post by: rezzonico on January 13, 2017, 04:58:36 AM
Hi Pierre,

I think that if I destroy the dialog, I cannot open it again.


Regards.


Title: Re: dialog + combobox
Post by: Pierre on January 13, 2017, 07:09:19 AM
OK you can try with unselect, or if you use combogrid, then unselectAll?


Title: Re: dialog + combobox
Post by: rezzonico on January 13, 2017, 08:16:55 AM
Hi Pierre,

I have added an "onBeforeClose" event in the dialog and in this event I call "unselect".
It works.

Thanks
Miche