Extjs combox 动态加载

    技术2022-05-20  48

    在combobox中,动态加载store,并为其设置初值:

     

    在combobox的store加载完毕后再设定

     store.load({       callback : function(r, options, success) {           if (success == false) {                Ext.Msg.alert("ERROR",   "There was an error parsing the Country Combo.");          }          else{ 

                    combobox.setValue("****");           }       }   });


    最新回复(0)