使用region布局的时候,容器的layout必须是border
- 原文:this config is only used when this BoxComponent is rendered by a Container which has been configured to use the BorderLayout layout manager
使用GridPanel的时候,右边会有多余的间隙(表格头宽度大于表格体)
new Ext.grid.EditorGridPanel({
// 使用配置即可
viewConfig: {
// autoFill: true,
// forceFit : true,
scrollOffset: 0 //去除最右边空白
}
})
GridPanel设置不支持排序,但是悬浮表头还是会处理排序下拉菜单,如何去掉
{
header: _('head_name'),
width: 200,
// 使用这个属性即可
menuDisabled: true,
dataIndex: 'report_type',
}