这是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()