ExtJs 플러그인 "RowExpander"를 사용하고 싶습니다.하지만 expandbody 이벤트가 발생하면 데이터를로드합니다. 이 코드를 시도했습니다,하지만 난가 확장 rwoBody의 내용을 설정하는 방법을 알고하지 않습니다 ExtJS 4.2.0로드 데이터가 동적 인 RowExpander
this.GridPrincipal.getView().addListener('expandbody', function (rowNode, record, expandRow, eOpts) {
Ext.Ajax.request({
url: 'getData/' + record.get('id'),
method: 'POST',
success: function (result, request) {
// retrive the data
var jsonData = Ext.util.JSON.decode(result.responseText);
//code to change the text of the RowBody
//....
},
failure: function (result, request) {
Ext.MessageBox.alert('Failed', result.responseText);
return false;
}
});
});
가 대단히 감사합니다.