EasyUI Forum
April 25, 2024, 08:15:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: dialog + combobox  (Read 6197 times)
rezzonico
Full Member
***
Posts: 182


View Profile
« 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


Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 on: January 13, 2017, 02:46:44 AM »

Hello
you can try to destroy your dialog (onClose event).
Logged
rezzonico
Full Member
***
Posts: 182


View Profile
« Reply #2 on: January 13, 2017, 04:58:36 AM »

Hi Pierre,

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


Regards.
« Last Edit: January 13, 2017, 05:33:53 AM by rezzonico » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #3 on: January 13, 2017, 07:09:19 AM »

OK you can try with unselect, or if you use combogrid, then unselectAll?
Logged
rezzonico
Full Member
***
Posts: 182


View Profile
« Reply #4 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!