我是用ext5 MVC 写的,
Ext.define('CFEApp.view.navigation.navigationview', {
extend : 'Ext.grid.Panel',
alias : 'widget.aclnavigationlist',
id : 'aclnavigationlist',
title : '模块管理',
store : 'navigation.navigationStore',
columns : [ {
xtype : 'gridcolumn',
dataIndex : 'display_Name',
flex : 1,
text : '模块名称'
},{
xtype : 'gridcolumn',
dataIndex : 'ui_Type',
flex : 0.4,
text : '模块类型'
},{
xtype : 'gridcolumn',
dataIndex : 'ui_Tech',
flex : 0.4,
text : 'ui_Tech'
},{
xtype : 'gridcolumn',
dataIndex : 'parent_Name',
flex : 0.4,
text : '父级模块'
},{
xtype : 'gridcolumn',
dataIndex : 'ui_Name',
flex : 0.4,
text : 'JS'
},{
xtype : 'gridcolumn',
dataIndex : 'status',
flex : 0.4,
text : '模块状态'
},{
xtype : 'gridcolumn',
dataIndex : 'is_Expand',
flex : 0.4,
text : '是否同步'
}
],
dockedItems : [ {
xtype : 'toolbar',
dock : 'top',
items : [ {
id : 'acl_navigation_add_id',
text : '新增',
action : 'acl_navigation_list_add_act'
}, '-', {
id : 'acl_navigation_edit_id',
text : '编辑',
action : 'acl_navigation_list_edit_act'
}, '-', {
id : 'acl_navigation_del_id',
text : '删除',
action : 'acl_navigation_list_del_act'
} ]
} ]
});
上边是一个view,现在想把这个view 改变成treegrid 形式,有没有大神帮一下忙,顺便再说一下,store里边 要把数据定义成什么格式,是Ext.data.TreeStore么?