extjs: How to l set value for combobox when loading

后端 未结 5 859
一向
一向 2021-01-14 11:24
  1. I am looking for a load listener, that when the combobox is up, load will be called and preform an ajax to the s

5条回答
  •  不知归路
    2021-01-14 12:17

    One of the things that I have wanted to do is have a default value from the store be selected when the combobox is rendered. Setting the combo box value to the first value from the store has worked pretty well.

    Ext.create('Ext.form.field.ComboBox', {
    ...
    value : this.myStore.first().get('aFieldName')
    

提交回复
热议问题