EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 07:55:54 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
combo boxes not selected when form loads
Pages: [
1
]
« previous
next »
Print
Author
Topic: combo boxes not selected when form loads (Read 7298 times)
devnull
Sr. Member
Posts: 431
combo boxes not selected when form loads
«
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
Re: combo boxes not selected when form loads
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...