Table of Contents

Class GridSettings

Namespace
Dynamicweb.Rendering.Designer
Assembly
Dynamicweb.dll
GridSettings represents how a grid should behave - how many columns, the format etc. Serialized and deserialized to disk by the Grid object
public class GridSettings
Inheritance
GridSettings
Inherited Members

Constructors

GridSettings()

public GridSettings()

Properties

ColumnClassLarge

Gets or sets the column css class used for large devices, i.e. col-lg-{columns}
public string ColumnClassLarge { get; set; }

Property Value

string
The column class for large devices.

ColumnClassMedium

Gets or sets the column css class used for medium devices, i.e. col-md-{columns}
public string ColumnClassMedium { get; set; }

Property Value

string
The column class for medium devices.

ColumnClassSmall

Gets or sets the column css class used for small devices, i.e. col-sm-{columns}
public string ColumnClassSmall { get; set; }

Property Value

string
The column class for small devices.

ColumnDefaultSize

Gets or sets the default size of new columns or paragraphs that does not have a column value set.
public int ColumnDefaultSize { get; set; }

Property Value

int
The default size of the column. The default is 12

Remarks

If Columns is changed, this setting should be changed accordingly

ColumnEnd

Gets or sets the markup used for column end, i.e. >/div<
public string ColumnEnd { get; set; }

Property Value

string
The column end markup.

Columns

Gets or sets the number of columns in the grid.
public int Columns { get; set; }

Property Value

int
The number of columns that the grid supports. The default is 12

ColumnsLarge

Gets or sets the columns supported in the UI for large devices (desktop), i.e. 3, 4, 6, 8, 9 and 12 out of 12 columns.
public List<int> ColumnsLarge { get; set; }

Property Value

List<int>
List of columns supported on large devices. The default is 3, 4, 6, 8, 9 and 12

ColumnsMedium

Gets or sets the columns supported in the UI for medium devices, i.e. 4, 6 and 12 out of 12 columns.
public List<int> ColumnsMedium { get; set; }

Property Value

List<int>
List of columns supported on medium devices.The default is
null
meaning medium devices are not defined by default supporting only small and large displays

Remarks

If the list is empty, medium device classes will not be supported in UI and in templates to make the implementation more simple (Default)

ColumnsSmall

Gets or sets the columns supported in the UI for small devices, i.e. 6 and 12 out of 12 columns.
public List<int> ColumnsSmall { get; set; }

Property Value

List<int>
List of columns supported on small devices. The default is 6, 12

Remarks

If the list is empty, small device classes will not be supported in UI and in templates to make the implementation more simple

ColumnStart

Gets or sets the markup used for column start, i.e. <div class="{columnClasses}">
public string ColumnStart { get; set; }

Property Value

string
The column start markup.

Remarks

{columnClasses} is needed as part of the value of the class attribute

ContainerEnd

Gets or sets the markup used for container end, i.e. >/div<
public string ContainerEnd { get; set; }

Property Value

string
The container end markup.

ContainerStart

Gets or sets the markup used for container start, i.e. >div class="container" id="{containerId}"<
public string ContainerStart { get; set; }

Property Value

string
The container start tag markup.

Remarks

{containerId} is needed as part of the value of the ID attribute

RowEnd

Gets or sets the markup used for row end, i.e. >/div<
public string RowEnd { get; set; }

Property Value

string
The row end markup.

RowStart

Gets or sets the markup used for row start, i.e. >div class="row" id="{rowId}"<
public string RowStart { get; set; }

Property Value

string
The row start markup.

Remarks

{rowId} is needed as part of the value of the ID attribute

Methods

GetBootstrap3Grid()

Gets an instance of a grid, based on Bootstrap 3.
public static GridSettings GetBootstrap3Grid()

Returns

GridSettings
A configured GridSettings instance.

GetTableBasedGrid()

Gets an instance of a grid, based on tables.
public static GridSettings GetTableBasedGrid()

Returns

GridSettings
A configured GridSettings instance.
To top