View Full Version : add empty value to combobox ?
dedoz
28 Mar 2012, 2:19 AM
how to add an empty selectable "value" to a Ext.form.field.ComboBox thats using a store ?
pretty much like adding an option like <option value="null"> </option> to a regular select.
tobiu
28 Mar 2012, 6:12 AM
just add / insert it to the store that the combo is using and use an as for the field, that is defined as the displayField.
dedoz
28 Mar 2012, 9:49 AM
thats a bad solution i think, adding "false/weird" records to the store and then i let user edit add/remove records from the store or do sync.
anyone with a solution that doesnt need to insert records to the store ? or a user extension ? :d
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.