Posted in Javascript onFebruary 24, 2010
看代码
var comboxContractType = new Ext.form.ComboBox({ name:'logisticsId', fieldLabel:'物流公司', displayField:'logisticsName', valueField:'logisticsId', emptyText:'请选择', width:330, editable:true, allowBlank:false, mode:'local', loadingText:'loading...', hiddenName:'logisticsId', //pageSize:10, selectOnFocus: true, triggerAction:'all', store:comboxContractTypeStore = new Ext.data.JsonStore({ url:'/pcms/dictionary/logistics.do?method=findLogistics', root:'Datas', totalProperty: 'TotalRecords', fields:[ {name:'logisticsId', mapping:'logisticsid'}, {name:'logisticsName', mapping:'shortname'} ] }) }); comboxContractTypeStore.load({params:{start:0,limit:100}});
注意3点:
别设置 PageSize 属性
mode属性设置为local 本地模式
最后要手动将用到的stroe进行load操作. stroe.load();
ext combox 下拉框不出现自动提示,自动选中的解决方法
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@