EasyUI Forum
November 05, 2025, 10:57:27 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: combobox onSelect() not fired by selected=true or during form load.  (Read 10357 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: March 23, 2016, 04:08:52 PM »

http://jsfiddle.net/FrEHv/384/

The onSelect() event is not fired if one of the data values is set to selected:true.

This needs to work for me, as combobox values are loaded via ajax and this selected value then needs to trigger loading of other data on the page for the record where selected = true.

Also, when loading a form containing a combobox, the onSelect() event also does not fire, this means that when loading a form that contains a combo and that combo is supposed to show / load other info based on it's selection, it does not work.





« Last Edit: March 23, 2016, 04:21:29 PM by devnull » Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 23, 2016, 06:40:41 PM »

You should use the 'onChange' event instead. This event fires when the field value is changed, no matter the data is loaded or not.
Logged
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #2 on: March 23, 2016, 06:47:14 PM »

Thanks, but the problem is that the onchange event fires during each character input and not on select.

Is it not possible to add a feature to enable selectOnLoad = true / false ??

I have a lot of existing code and don't want to have to re-write it all.
Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: March 24, 2016, 01:25:31 AM »

This problem has been solved. Please try to download the patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.5-patch.zip.
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!