我在Ext Window中有Ext GridPanel。为了让Ext Window Resizeable,我使它的属性为真,并且它工作正常。为了让Ext GridPanel在Ext窗口中可以调整大小的Ext Js
但是,也想让网格调整大小。所以,为此我还尝试了resizeable: true
。
不好运!
在这里,我为GridPanel中
new Ext.grid.GridPanel({
height: 295,
id: 'productGrid',
store: productStore,
disableSelection: true,
loadMask: true,
stripeRows: true,
region: 'south',
resizeable: true, // not working
autoExpandColumn: 'auto-expand',
cm: new Ext.grid.ColumnModel({
id: 'productColModel',
columns: [
{
header: "column1",
dataIndex: 'name',
width: 110
}, {
header: "column2",
dataIndex: "age",
sortable: false,
align: 'left',
width: 80
}, {
id: 'auto-expand',
header: "Description",
dataIndex: 'description',
renderer: function(value, metaData, record) {
return Ext.util.Format.stripTags(value);
}
}, {
header: "Weight",
dataIndex: 'weight',
align: 'right',
width: 70
}, {
header: "List Price",
dataIndex: 'listPrice',
align: 'right',
renderer: 'usMoney',
width: 80
}, {
header: "Add",
width: 30,
dataIndex: 'id',
sortable: false,
renderer: function(value) {
return '<img class="columnHover" src="/scripts/shared/icons/fam/add.gif" height="16" width="16" />';
}
}
],
....
....
代码请告诉我需要做什么或我做错什么。
谢谢。
谢谢!但是,不想调整窗口大小。想要在ExtJs – Naincy 2014-10-01 10:01:37
http://www.sencha.com/forum/showthread.php?24701-Resizable-GridPanel窗口中调整大小。在Sencha论坛中检查链接一次。 – Sreek521 2014-10-01 10:14:51