Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ComboBox

    I am using select with editorType: "comboBox". I have its data set to a dataSource. DatSouce has two fields: filenumber and id that are set as following:
    valueField: "id", displayField: "filenumber"
    When I select something from combo and saveData() my server receives id as a combo value. But in case I am typing non-existent file number then the server has it as a file id. While I can work around that still is it possible to return 0 as a combo value when new data was entered?

    Thanks

    #2
    If you want to allow only valid values to be chosen, you can use a SelectItem instead of a ComboBoxItem. Both support optionDataSource, valueField and displayField. Will that work for you?

    Comment

    Working...
    X