我是Extjs的新手,所以請幫助我解決這個問題,即使聽起來很容易。 我有一個組合框,我希望它顯示所選項目的區域,只要它展開。 我的代碼看起來像下面:Extjs如何滾動到組合框中的選定項目展開
xtype: 'combo',
id: 'hdpbox',
store: storeNumber,
queryMode: 'local',
forceSelection: true,
selectOnFocus: true,
displayField: 'display',
valueField: 'value',
listeners: {
expand: function(){
//Some functions will go here in order to show where the selected item in the list
}
}
它總是在不斷擴大,雖然所選項目是從底部一個顯示上方的記錄。 我嘗試了很多方法,但沒有解決。我使用Ext 4.2.1只是爲了您的信息。 非常感謝您的時間和關注