私はコンボボックスとデータソースをプロキシとして持つ単純なグリッドフォームに取り組んでいます( http://goo.gl/2fxP8など)。コンボボックスは正しく読み込まれますが、リスト項目の 1 つを選択しようとすると、グリッドフォームが閉じてコンボボックスが閉じません。誰でも私を助けることができますか?
リスト項目が選択されると、他のフィールドが動的に読み込まれるように、コンボボックスの onselect 関数も拡張する予定です。
searchField = new Ext.form.ComboBox({
store: ds,
name : 'search',
id:'search',
fieldLabel : 'Search',
displayField:'title',
typeAhead: false,
loadingText: 'Searching...',
pageSize:10,
minChars:2,
triggerAction: 'all',
width: 200,
tpl: resTpl,
itemSelector: 'div.search-item',
onSelect: function(record){
/* Set Values to other fields here */
}
}),
保存するためのコードは次のとおりです。
Ext.Ajax.request
({
url:"some url",
scope:this,
params:
{
},
success: function(objServerResponse)
{
eval("var resultSet = " +objServerResponse.responseText);
if(resultSet.isOk)
{
this.collapse();
}
else
{
}
}
});