qq_24637447 2015-01-14 01:52 采纳率: 0%
浏览 2272

EXT5 treegrid怎么编写

我是用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么?

  • 写回答

1条回答

  • Go 旅城通票 2015-01-14 02:12
    关注

    Ext.data.TreeStore+Ext.data.TreeModel,DEMO里面不是有

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘