私はいくつかの列を含む私と一緒にJavaスクリプトのパネルを拡張している。列内のデータはサーバーから受信されます。いくつかの場合、各列のサーバーからのデータは大きく、行内に収まりません。ここでext.jsパネルで行の高さと幅を自動調整する方法は?
は同じのためのコードです:
Ext.define('DataDetailsGrid', {
extend: 'Ext.grid.Panel',
requires: [
'DataStore'
],
id: 'DataDetailsGrid',
xtype: 'grid',
margin: "20 20 20 20",
nestedView: false,
title: 'Student information',
store: 'DataStore',
frame: true,
flex: 1,
viewConfig : {
deferEmptyText: false,
emptyText: 'No data Available'
},
columns: [
{ text: 'Id', flex: 0.5, dataIndex: 'id' },
{ text: 'Student name', flex: 1, dataIndex: 'student_name' },
{ text: 'Time Stamp', flex: 1, dataIndex: 'requestTimeStamp' },
{ text: 'email Id', flex: 1, dataIndex: 'emailId' },
{ text: 'About Students', flex: 4, dataIndex: 'response' },
]
});
問題は、約500文字時々することができ学生についてです。これは、指定された行の内部に収められていません。
たぶん[rowexpander](http://docs.sencha.com/extjs/4.2.3/に学生について置きます#!/ api/Ext.grid.plugin.RowExpander)? – Zoran