menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DashboardLayout - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DashboardLayout

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    DashboardLayout
    Namespace: Syncfusion.EJ2.Layouts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DashboardLayout : EJTagHelper

    Constructors

    DashboardLayout()

    Declaration
    public DashboardLayout()

    Properties

    AllowDragging

    If allowDragging is set to true, then the DashboardLayout allows you to drag and reorder the panels.

    Declaration
    public bool AllowDragging { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    AllowFloating

    If allowFloating is set to true, then the DashboardLayout automatically move the panels upwards to fill the empty available cells while dragging or resizing the panels.

    Declaration
    public bool AllowFloating { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    AllowResizing

    If allowResizing is set to true, then the DashboardLayout allows you to resize the panels.

    Declaration
    public bool AllowResizing { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    CellAspectRatio

    Defines the cell aspect ratio of the panel.

    Declaration
    public double CellAspectRatio { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 1

    CellSpacing

    Defines the spacing between the panels.

    Declaration
    public double[] CellSpacing { get; set; }
    Property Value
    Type Description
    System.Double[]

    The default value is null

    Change

    Triggers whenever the panels positions are changed.

    Declaration
    public string Change { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Columns

    Defines the number of columns to be created in the DashboardLayout.

    Declaration
    public double Columns { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 1

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Created

    Triggers when Dashboard Layout is created.

    Declaration
    public string Created { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Destroyed

    Triggers when Dashboard Layout is destroyed.

    Declaration
    public string Destroyed { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Drag

    Triggers while a panel is dragged continuously.

    Declaration
    public string Drag { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    DraggableHandle

    Defines the draggable handle selector which will act as dragging handler for the panels.

    Declaration
    public string DraggableHandle { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    DragStart

    Triggers when a panel is about to drag.

    Declaration
    public string DragStart { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    DragStop

    Triggers when a dragged panel is dropped.

    Declaration
    public string DragStop { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    EnableHtmlSanitizer

    Defines whether to allow the cross-scripting site or not.

    Declaration
    public bool EnableHtmlSanitizer { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    EnablePersistence

    Enable or disable persisting component's state between page reloads.

    Declaration
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type
    System.Object

    MediaQuery

    Defines the media query value where the dashboardlayout becomes stacked layout when the resolution meets.

    Declaration
    public string MediaQuery { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "max-width:600px"

    Panels

    Defines the panels property of the DashboardLayout component.

    Declaration
    public List<DashboardLayoutPanel> Panels { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<DashboardLayoutPanel>

    The default value is null

    ResizableHandles

    Defines the resizing handles directions used for resizing the panels.

    Declaration
    public string[] ResizableHandles { get; set; }
    Property Value
    Type Description
    System.String[]

    The default value is null

    Resize

    Triggers when a panel is being resized continuously.

    Declaration
    public string Resize { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ResizeStart

    Triggers when a panel is about to resize.

    Declaration
    public string ResizeStart { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ResizeStop

    Triggers when a panel resize ends.

    Declaration
    public string ResizeStop { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    ShowGridLines

    Enables or disables the grid lines for the Dashboard Layout panels.

    Declaration
    public bool ShowGridLines { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

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