首页 新闻 会员 周边 捐助

在MVC中使用Dev中的treelist控件,做权限的时候怎么报已有的权限的复选框勾上

0
悬赏园豆:20 [已关闭问题] 关闭于 2018-04-08 14:16

这是treelist的分布视图

@{
    var treeList = Html.DevExpress().TreeList(settings =>
    {
        settings.Name = "TreeList";
        settings.CallbackRouteValues = new { Controller = "Role", Action = "TreeListRole" };
        settings.CustomActionRouteValues = new { Controller = "Role", Action = "TreeListRole" };
        settings.Width = 200;
        settings.SettingsSelection.Enabled = false;
        settings.SettingsSelection.Recursive = false;
        settings.SettingsSelection.AllowSelectAll = false;
        settings.KeyFieldName = "MenuId";
        settings.ParentFieldName = "ParentId";
        settings.Columns.Add(
    column =>
    {
        column.FieldName = "MenuName";
    }
        );
        // settings.Columns.Add(m => m.MenuMenuId.Menu.MenuName);
        settings.SettingsPager.Visible = false;
        settings.SettingsSelection.Enabled = true;
        settings.ClientSideEvents.NodeClick = "function(s, e) {NodeClick( s, e) }";
    });
}
@treeList.Bind(Model).GetHtml()
大黄人的主页 大黄人 | 小虾三级 | 园豆:641
提问于:2018-03-23 14:43
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册