EasyUI Forum
September 14, 2025, 10:12:38 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: combo boxes not selected when form loads  (Read 7302 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« on: June 22, 2014, 04:03:16 PM »

I have some forms that have many combo boxes, when the form is loaded, although the value of the combobox is set, the related option in the combo list is not selected as it would be if it was a default html select element.

can the form load method be modified so that as well as setting a combo value, it also selects the option record in it's list.

Thanks
Logged

-- Licensed User --
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: June 22, 2014, 06:31:05 PM »

When calling 'load' method to load form combobox, the 'setValue' method of combobox will be called to set the combobox with new value, the related item of drop-down will be selected too.
Please see this example http://jsfiddle.net/YBhB9/.
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!