ext combox 드롭다운 상자에 자동 프롬프트가 표시되지 않고 자동으로 선택된 해결 방법

1155 단어
코드 보기
 
  
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();

좋은 웹페이지 즐겨찾기