RadDrawer
Represents the RadDrawer control that provides a collapsible panel for navigation or content display.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(Html5Drawer))]
[ClientScriptResource("Telerik.Web.UI.RadDrawer", "Telerik.Web.UI.Drawer.Scripts.RadDrawer.js")]
[EmbeddedSkin("Drawer", typeof(RadDrawer))]
[EmbeddedSkin("Drawer", "Default", typeof(RadDrawer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.common.css", RenderMode.Classic, typeof(RadDrawer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.common.css", RenderMode.Lightweight, typeof(RadDrawer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.common.css", RenderMode.Mobile, typeof(RadDrawer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadDrawer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadDrawer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Mobile, typeof(RadDrawer))]
[ToolboxBitmap(typeof(RadCard), "Toolbox.Icons.Drawer.png")]
public class RadDrawer : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, INamingContainer
Inheritance: objectControlWebControlRadWebControlRadDrawer
Implements:
Inherited Members
Constructors
public RadDrawer()
Properties
Defines the client events handlers.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DrawerClientEvents ClientEvents { get; }
Gets the control, where the ContentTemplate will be instantiated in. You can add controls programmatically here.
[Browsable(false)]
public SingleTemplateContainer ContentContainer { get; }
You can use this property to programmatically add controls to the content area. If you add controls to the ContentContainer the NavigateUrl property will be ignored.
Gets or sets the System.Web.UI.ITemplate that contains the controls which will be placed in the control content area.
[TemplateContainer(typeof(SingleTemplateContainer))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateInstance(TemplateInstance.Single)]
[Browsable(false)]
[Bindable(false)]
public ITemplate ContentTemplate { get; set; }
You cannot set this property twice, or when you added controls to the ContentContainer. If you set ContentTemplate the NavigateUrl property will be ignored.
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Defines a specific width for the Kendo UI Drawer when expanded.
public double DrawerWidth { get; set; }
Specifies the drawer's content.
[Browsable(true)]
[Bindable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public string ItemsTemplate { get; set; }
Specifies the minimum height for the drawer in push mode. The overlay mode takes 100% of the page height.
public double MinHeight { get; set; }
Enables or configures the mini mode for the Kendo UI Drawer. This is a compact view that is displayed when the Kendo UI Drawer is collapsed. Usually it used to show only the icons when the drawer content contains icon and text for an item. When set to true it uses the main template.
public bool Mini { get; set; }
Enables or configures the mini mode for the Kendo UI Drawer. This is a compact view that is displayed when the Kendo UI Drawer is collapsed. Usually it used to show only the icons when the drawer content contains icon and text for an item. When set to true it uses the main template.
[PersistenceMode(PersistenceMode.InnerProperty)]
public Mini MiniSettings { get; }
Determines how the Kendo UI Drawer will interact with the associated content. The default one (overlay) will simply overlap the associated content with overlay effect. On the other hand "push" mode will show the drawer next to associated cotent. The associated content will shrink its content.
public DrawerModeType Mode { get; set; }
Navigate the widget using the keyboard. By default keyboard navigation is disabled.
public bool Navigatable { get; set; }
The position of the drawer. Can be left (default) or right.
public DrawerPositionType Position { get; set; }
Gets or sets a value indicating whether the outer borders will be displayed.
public bool ShowBorders { get; set; }
True if all the borders will be visible; otherwise False. The default value is False.
If set to false, swiping the associated content will not activate the drawer. In this case, the drawer will only be open by calling the show method. should be disabled for browsers, which use side swiping gestures for back/forward navigation, such as iOS Safari. Otherwise, users should swipe from an inner part of the view, and not from the view edge.
public bool SwipeToOpen { get; set; }
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Methods
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
protected override void TrackViewState()
Overrides: