다음과 같은 구성의 콤보 상자가 있습니다. 밀리 세컨드하고 꺼질 수 표시됩니다 -ExtJs4 - 자동 완성 콤보 상자에 빈 텍스트가 표시되지 않습니다.
{
fieldLabel:'Service',
xtype:'combo',
displayField: 'srvcDesc',
store: storeServiceCodeVar,
valueField:'srvcCD',
id:'serviceCodeId',
name:'serviceCodeName',
queryMode: 'remote',
queryDelay:100,
typeAhead: true,
minChars:0,
hideTrigger:true,
forceSelection:true,
maxHeight:23,
deferEmptyText:false,
autoSelect:true,
fieldStyle:'text-transform:uppercase',
listConfig: {
loadingText: 'Loading...',
// Custom rendering template for each item
getInnerTpl: function() {
return '<table width="200px"><tr><td height="5"></td></tr><tr valign="top"><td>Code:{srvcCD}</td></tr><tr><td height="2"></td></tr><tr valign="top"><td>Description:{srvcDesc}</td></tr><tr><td height="5"></td></tr></table>';
},
emptyText:'No Values Found'
}
}
문제는 서버에서 반환 된 데이터, 존재하지 않는 경우 (찾을 수 없습니다 값 값을 가진다) emptyText는 점이다. 해고 당하면 다음 쿼리까지 거기에 머물고 싶습니다. 그게 어떻게 가능해. 나는 deferEmptyText로 시도했지만 행운은 없다.
누군가가이를 밝힐 수 있습니까? ExtJS 4를 사용하고 IE9와 Mozilla에서 동작이 동일합니다.
미리 감사드립니다.
또한이 문제로 어려움을 겪습니다. 예상대로 DOM에 emptyText 값이 추가되지만 서버에서 레코드가 반환되지 않으면 포함 요소의 높이가 0으로 설정됩니다. 현재 Ext JS 4 소스를 통해 영감을 얻고 있습니다 ... –