首页 > 代码库 > LigerUI 树状列表折叠显示

LigerUI 树状列表折叠显示

http://blog.csdn.net/haojuntu/article/details/8626040

——————————————————————————————————————————————————————————————————————————

function InitGrid(arrButtons) {
          //加载 菜单管理数据            $.post("Ajax_Menu.aspx", { view: ‘ManageMenu‘ }, function(data) {                gridRight.set(‘data‘, { Rows: data.Data });            }, ‘json‘);            gridRight = $("#maingrid").ligerGrid({                columns: [                { display: ‘菜单ID‘, isSort: false, name: ‘ModuleID‘, align: "left" },                { display: ‘菜单名称‘, isSort: false, name: ‘ModuleName‘, align: "left" },                { display: ‘菜单父ID‘, isSort: false, name: ‘ModuleParentID‘, align: "left" },                { display: ‘菜单类型‘, isSort: false, name: ‘ModuleTypeID‘, align: "left", width: 100 }
                  ],
                usePager: false,                tree: { columnName: ‘ModuleName‘ },           //加载数据后折叠事件
                onAfterShowData: function() {                    var l = $(".l-grid-tree-link-open").length;                    for (var i = l - 1; i >= 0; i--)                        $(".l-grid-tree-link-open")[i].click();                },                data: []            });        }