public PanelBar(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization) : base(viewContext, initializer) { Authorization = authorization; UrlGenerator = urlGenerator; Animation = new ExpandableAnimation(); ExpandMode = PanelBarExpandMode.Multiple; HighlightPath = true; Items = new LinkedObjectCollection <PanelBarItem>(null); SelectedIndex = -1; SecurityTrimming = new SecurityTrimming(); }
public TreeView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization) : base(viewContext, initializer) { UrlGenerator = urlGenerator; Authorization = authorization; Animation = new ExpandableAnimation(); this.DragAndDrop = false; Items = new LinkedObjectCollection <TreeViewItem>(null); SelectedIndex = -1; SecurityTrimming = new SecurityTrimming(); LoadOnDemand = true; Checkboxes = new TreeViewCheckboxesSettings(); DataSource = new DataSource(); AutoBind = true; }