menu

ASP.NET Web Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NavigationDrawerPropertiesBuilder

    Show / Hide Table of Contents

    Class NavigationDrawerPropertiesBuilder

    Represents a class for NavigationDrawerPropertiesBuilder which includes position, target ID, content ID, type, and width properties.

    Inheritance
    System.Object
    NavigationDrawerPropertiesBuilder
    Implements
    IPropertiesBuilder
    System.Web.IHtmlString
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class NavigationDrawerPropertiesBuilder : IPropertiesBuilder, IHtmlString

    Constructors

    NavigationDrawerPropertiesBuilder(NavigationDrawer)

    Constructor for NavigationDrawer PropertiesBuilder

    Declaration
    public NavigationDrawerPropertiesBuilder(NavigationDrawer NavigationDrawer)
    Parameters
    Type Name Description
    NavigationDrawer NavigationDrawer

    Methods

    ClientSideEvents(Action<NavigationDrawerClientSideEventsBuilder>)

    NavigationDrawer ClientSide Events

    Declaration
    public NavigationDrawerPropertiesBuilder ClientSideEvents(Action<NavigationDrawerClientSideEventsBuilder> clientSideEvents)
    Parameters
    Type Name Description
    System.Action<NavigationDrawerClientSideEventsBuilder> clientSideEvents
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    ContentId(String)

    Specifies the contentId for navigation drawer, where the ajax content need to updated.with string argument.

    Declaration
    public NavigationDrawerPropertiesBuilder ContentId(string contentId)
    Parameters
    Type Name Description
    System.String contentId
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    ContentTemplate(Action<NavigationDrawerProperties>)

    Specifies the element contains template contents.

    Declaration
    public NavigationDrawerPropertiesBuilder ContentTemplate(Action<NavigationDrawerProperties> template)
    Parameters
    Type Name Description
    System.Action<NavigationDrawerProperties> template
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    ContentTemplate(Func<NavigationDrawerProperties, Object>)

    Content template. The Content template for RazorView.

    Declaration
    public NavigationDrawerPropertiesBuilder ContentTemplate(Func<NavigationDrawerProperties, object> template)
    Parameters
    Type Name Description
    System.Func<NavigationDrawerProperties, System.Object> template
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    CssClass(String)

    Sets the root class for NavigationDrawer theme. This cssClass API helps to use custom skinning option for NavigationDrawer control. By defining the root class using this API, we need to include this root class in CSS.

    Declaration
    public NavigationDrawerPropertiesBuilder CssClass(string CssClass)
    Parameters
    Type Name Description
    System.String CssClass
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    Direction(NavigationDrawerDirection)

    Sets the Direction for the control.

    Declaration
    public NavigationDrawerPropertiesBuilder Direction(NavigationDrawerDirection direction)
    Parameters
    Type Name Description
    NavigationDrawerDirection direction
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    EnableListView(Boolean)

    Sets the listview to be enabled or not.with boolean argument.

    Declaration
    public NavigationDrawerPropertiesBuilder EnableListView(bool enablelistbox)
    Parameters
    Type Name Description
    System.Boolean enablelistbox
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    IsPaneOpen(Boolean)

    Specifies the Pane state with boolean argument.

    Declaration
    public NavigationDrawerPropertiesBuilder IsPaneOpen(bool isPaneOpen)
    Parameters
    Type Name Description
    System.Boolean isPaneOpen
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    ListViewSettings(Action<ListViewPropertiesBuilder>)

    Sets all the properties of listview to render in navigation drawer

    Declaration
    public NavigationDrawerPropertiesBuilder ListViewSettings(Action<ListViewPropertiesBuilder> listViewModel)
    Parameters
    Type Name Description
    System.Action<ListViewPropertiesBuilder> listViewModel
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    Position(NavigationDrawerPosition)

    Specifies position whether it is in fixed or relative to the page.

    Declaration
    public NavigationDrawerPropertiesBuilder Position(NavigationDrawerPosition position)
    Parameters
    Type Name Description
    NavigationDrawerPosition position
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    Render()

    Declaration
    public void Render()

    TargetId(String)

    Specifies the targetId for navigation drawer.

    Declaration
    public NavigationDrawerPropertiesBuilder TargetId(string targetId)
    Parameters
    Type Name Description
    System.String targetId
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    ToHtmlString()

    Returns an HTML-encoded string.

    Declaration
    public string ToHtmlString()
    Returns
    Type Description
    System.String

    Type(NavigationDrawerType)

    Sets the rendering type of the control.

    Declaration
    public NavigationDrawerPropertiesBuilder Type(NavigationDrawerType type)
    Parameters
    Type Name Description
    NavigationDrawerType type
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    Width(Int32)

    Specifies the width of the control with integer argument.

    Declaration
    public NavigationDrawerPropertiesBuilder Width(int width)
    Parameters
    Type Name Description
    System.Int32 width
    Returns
    Type Description
    NavigationDrawerPropertiesBuilder

    Implements

    IPropertiesBuilder
    System.Web.IHtmlString
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved