public PanelBar(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization, INavigationComponentHtmlBuilderFactory <PanelBar, PanelBarItem> rendererFactory) : base(viewContext, clientSideObjectWriterFactory) { Guard.IsNotNull(urlGenerator, "urlGenerator"); Guard.IsNotNull(authorization, "authorization"); Authorization = authorization; UrlGenerator = urlGenerator; this.builderFactory = rendererFactory; ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.panelbar.js" }); ClientEvents = new PanelBarClientEvents(); this.Effects = new Effects(); defaultEffects.Each(el => Effects.Container.Add(el)); ExpandMode = PanelBarExpandMode.Multiple; HighlightPath = true; Items = new LinkedObjectCollection <PanelBarItem>(null); SelectedIndex = -1; SecurityTrimming = true; }
/// <summary> /// Initializes a new instance of the <see cref="TreeView"/> class. /// </summary> /// <param name="viewContext">The view context.</param> /// <param name="clientSideObjectWriterFactory">The client side object writer factory.</param> /// <param name="urlGenerator">The URL generator.</param> /// <param name="urlGenerator">The navigation item authorization.</param> /// <param name="builderFactory">The builder factory.</param> public TreeView(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization, ITreeViewHtmlBuilderFactory factory) : base(viewContext, clientSideObjectWriterFactory) { Guard.IsNotNull(urlGenerator, "urlGenerator"); Guard.IsNotNull(authorization, "authorization"); Guard.IsNotNull(factory, "factory"); UrlGenerator = urlGenerator; Authorization = authorization; builderFactory = factory; ClientEvents = new TreeViewClientEvents(); ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.treeview.js" }); DragAndDrop = new TreeViewDragAndDropSettings(); DataBinding = new TreeViewDataBindingConfiguration(); Ajax = DataBinding.Ajax; WebService = DataBinding.WebService; this.Effects = new Effects(); defaultEffects.Each(el => Effects.Container.Add(el)); Items = new LinkedObjectCollection <TreeViewItem>(null); ShowLines = true; SelectedIndex = -1; SecurityTrimming = true; }
public Menu(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator) : base(viewContext, clientSideObjectWriterFactory) { Guard.IsNotNull(urlGenerator, "urlGenerator"); UrlGenerator = urlGenerator; Items = new LinkedObjectCollection<MenuItem>(null); }
public Menu(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization) : base(viewContext, initializer) { Animation = new PopupAnimation(); UrlGenerator = urlGenerator; Authorization = authorization; Items = new LinkedObjectCollection <MenuItem>(null); CloseOnClick = true; HighlightPath = true; SecurityTrimming = true; }
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 = true; LoadOnDemand = true; Checkboxes = new TreeViewCheckboxesSettings(); DataSource = new DataSource(); }
public Menu(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization, INavigationComponentHtmlBuilderFactory <Menu, MenuItem> factory) : base(viewContext, clientSideObjectWriterFactory) { Guard.IsNotNull(urlGenerator, "urlGenerator"); Guard.IsNotNull(authorization, "authorization"); Guard.IsNotNull(factory, "factory"); UrlGenerator = urlGenerator; Authorization = authorization; rendererFactory = factory; ClientEvents = new MenuClientEvents(); ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.menu.js" }); this.Effects = new Effects(); defaultEffects.Each(el => Effects.Container.Add(el)); Items = new LinkedObjectCollection <MenuItem>(null); SelectedIndex = -1; HighlightPath = true; }
public PanelBarItem() { Items = new LinkedObjectCollection <PanelBarItem>(this); }
public LinkedObjectCollectionTests() { _parent = new LinkedObjectTestDouble(); _list = new LinkedObjectCollection <LinkedObjectTestDouble>(_parent); }
public MenuItem() { Items = new LinkedObjectCollection <MenuItem>(this); }
public NavigationItemTestDouble() { Items = new LinkedObjectCollection <NavigationItemTestDouble>(this); }