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 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题