0
A
回答
0
http://docs-origin.sencha.com/extjs/4.2.2/#!/api/Ext.grid.feature.Grouping-cfg-collapsible
可折叠:布尔
设置为false以禁用从UI坍塌组。当关联的商店被缓冲时,它被设置为false。
默认为:真
使用features: [{ftype:'grouping', collapsible: false}],
您的网格
Ext.application({
name: 'Fiddle',
launch: function() {
var store = Ext.create('Ext.data.Store', {
storeId: 'employeeStore',
fields: ['name', 'seniority', 'department'],
groupField: 'department',
data: {
'employees': [{
"name": "Michael Scott",
"seniority": 7,
"department": "Management"
}, {
"name": "Dwight Schrute",
"seniority": 2,
"department": "Sales"
}, {
"name": "Jim Halpert",
"seniority": 3,
"department": "Sales"
}, {
"name": "Kevin Malone",
"seniority": 4,
"department": "Accounting"
}, {
"name": "Angela Martin",
"seniority": 5,
"department": "Accounting"
}]
},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'employees'
}
}
});
Ext.create('Ext.grid.Panel', {
title: 'Employees',
store: Ext.data.StoreManager.lookup('employeeStore'),
columns: [{
text: 'Name',
dataIndex: 'name',
flex: 1
}, {
text: 'Seniority',
dataIndex: 'seniority',
flex: 1
}],
features: [{
ftype: 'grouping',
collapsible: false
}],
width: 500,
renderTo: Ext.getBody()
});
}
});
<script src="https://extjs.cachefly.net/ext/gpl/4.2.1/ext-all-debug.js"></script>
<link href="https://extjs.cachefly.net/ext/gpl/4.2.1/packages/ext-theme-classic/build/resources/ext-theme-classic-all.css" rel="stylesheet"/>
相关问题
- 1. 如何在ExtJS的分组网格中禁用折叠?
- 2. Ext js 4.2销毁组件
- 3. 如何在煎茶的Ext JS 4.2
- 4. 在WPF中折叠网格
- 5. Ext JS 4.2引擎
- 6. Ext Js网格列
- 7. 如何在Ext JS中禁用组合框中的项目?
- 8. Ext JS Combobox在网格内
- 9. Ext JS 4.2分组中的错误行索引
- 10. 如何隐藏和显示ext js 4.2中的网格面板行?
- 11. EXT js 4.2如何在按键过滤过滤器插件的网格?
- 12. 带分组的Ext JS网格在点击时展开一行
- 13. Ext JS 3 - 在点击网格列标题时禁用排序
- 14. Ext JS的JSON电网分组
- 15. EXT JS 4.2网格 - 自动检查选择模型复选框
- 16. Ext-js 4.2网格的水平滚动条
- 17. 隐藏在网格中的行JS EXT
- 18. 网格显示在Ext JS中
- 19. 如何折叠/折叠UITableView的部分?
- 20. 如何在Ext Js面板中旋转三角形折叠图标?
- 21. 如何禁用按钮Ext JS
- 22. 在数据网格中使用组时折叠的列
- 23. 分组对列的Ext JS的4.0.2a网格包含空值
- 24. Highcharts在Ext JS Panel中的折线图
- 25. 如何删除滚动网格与分页 - Ext JS 4
- 26. 无法从Ext JS调用aspx 4.2
- 27. 在Ext JS 5中的自定义分拣机网格列
- 28. 如何禁用边缘折叠?
- 29. 展开/折叠网格
- 30. 在Ext JS中电网
感谢快速回复。作品 – jprism 2014-11-14 20:52:35