Exemple #1
0
        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();
        }
Exemple #2
0
        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 = true;

            LoadOnDemand = true;

            Checkboxes = new TreeViewCheckboxesSettings();

            DataSource = new DataSource();
        }