Class DashboardLayout
Inherited Members
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
[HtmlAttributeName("allowDragging")]
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
[HtmlAttributeName("allowFloating")]
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
[HtmlAttributeName("allowResizing")]
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
[HtmlAttributeName("cellAspectRatio")]
public double CellAspectRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
CellSpacing
Defines the spacing between the panels.
Declaration
[HtmlAttributeName("cellSpacing")]
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
[HtmlAttributeName("change")]
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
[HtmlAttributeName("columns")]
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 | Description |
---|---|
MvcTemplate<System.Object> |
Created
Triggers when Dashboard Layout is created.
Declaration
[HtmlAttributeName("created")]
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Destroyed
Triggers when Dashboard Layout is destroyed.
Declaration
[HtmlAttributeName("destroyed")]
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
[HtmlAttributeName("drag")]
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
[HtmlAttributeName("draggableHandle")]
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
[HtmlAttributeName("dragStart")]
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
[HtmlAttributeName("dragStop")]
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
[HtmlAttributeName("enableHtmlSanitizer")]
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
[HtmlAttributeName("enablePersistence")]
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
[HtmlAttributeName("enableRtl")]
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
[HtmlAttributeName("htmlAttributes")]
public object HtmlAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
MediaQuery
Defines the media query value where the dashboardlayout becomes stacked layout when the resolution meets.
Declaration
[HtmlAttributeName("mediaQuery")]
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
[HtmlAttributeName("panels")]
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
[HtmlAttributeName("resizableHandles")]
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
[HtmlAttributeName("resize")]
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
[HtmlAttributeName("resizeStart")]
public string ResizeStart { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ResizeStop
Triggers when a panel resize ends.
Declaration
[HtmlAttributeName("resizeStop")]
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
[HtmlAttributeName("showGridLines")]
public bool ShowGridLines { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |