New to Telerik UI for ASP.NET Core? Start a free 30-day trial

GridLayout class.

Definition

Constructors

Initializes a new instance of the GridLayout class.

C#
public GridLayout(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Defines the grid layout column definitions.

C#
public List<GridLayoutColumn> ColumnCollection { get; set; }

Defines the spacing between columns of the container.

C#
public string ColumnSpacing { get; set; }

DeferredStyleString member.

C#
public string DeferredStyleString { get; set; }

Defines the horizontal align of the items in the grid column. Default value is Stretch.

C#
public HorizontalAlign HorizontalAlign { get; set; }

Defines the grid layout items.

C#
public List<GridLayoutItem> Items { get; set; }

Defines the grid layout row definitions.

C#
public List<GridLayoutRow> RowCollection { get; set; }

Defines the spacing between rows of the container.

C#
public string RowSpacing { get; set; }

Defines the vertical align of the items in the grid column. Default value is Stretch.

C#
public VerticalAlign VerticalAlign { get; set; }

Defines the width of the container.

C#
public string Width { get; set; }

Methods

AppendStyle method.

C#
public void AppendStyle(string uid, string style)
Parameters:uidstringstylestring

WriteDeferredStyles method.

C#
public override void WriteDeferredStyles(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteDeferredStyles(TextWriter)

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)