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

Defines the fluent API for configuring the Kendo UI TileLayout

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TileLayoutBuilder : WidgetBuilderBase<TileLayout, TileLayoutBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<TileLayout, TileLayoutBuilder>TileLayoutBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<TileLayout, TileLayoutBuilder>.ToComponent()WidgetBuilderBase<TileLayout, TileLayoutBuilder>.Expression(string)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.Name(string)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.Deferred(bool)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.HtmlAttributes(object)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.Render()WidgetBuilderBase<TileLayout, TileLayoutBuilder>.ToHtmlString()WidgetBuilderBase<TileLayout, TileLayoutBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.ToClientTemplate()WidgetBuilderBase<TileLayout, TileLayoutBuilder>.AsModule(bool)WidgetBuilderBase<TileLayout, TileLayoutBuilder>.ComponentWidgetBuilderBase<TileLayout, TileLayoutBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the TileLayoutBuilder class.

C#
public TileLayoutBuilder(TileLayout component)
Parameters:componentTileLayout

Methods

Defines the number of columns.

C#
public TileLayoutBuilder Columns(double value)
Parameters:valuedouble

The value for Columns

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Columns(5)
)

Determines the width of the columns. Numeric values are treated as pixels.

C#
public TileLayoutBuilder ColumnsWidth(string value)
Parameters:valuestring

The value for ColumnsWidth

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.ColumnsWidth("300px")
)

An array with objects representing the settings of the layout items.

C#
public TileLayoutBuilder Containers(Action<TileLayoutContainerFactory> configurator)
Parameters:configuratorAction<TileLayoutContainerFactory>

The TileLayoutContainerFactory for the containers setting.

Returns:

TileLayoutBuilder

Returns the current instance of TileLayoutBuilder .

Configures the client-side events.

C#
public TileLayoutBuilder Events(Action<TileLayoutEventBuilder> configurator)
Parameters:configuratorAction<TileLayoutEventBuilder>

The client events action.

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("TileLayout")
.Events(events =&gt; events
.Resize("onResize")
)
)

An object holding values that determine the spacing between the layout items horizontally and vertically.

C#
public TileLayoutBuilder Gap(Action<TileLayoutGapSettingsBuilder> configurator)
Parameters:configuratorAction<TileLayoutGapSettingsBuilder>

The TileLayoutGapSettingsBuilder for the gap setting.

Returns:

TileLayoutBuilder

Returns the current instance of TileLayoutBuilder .

Determines the height of the layout. Numeric values are treated as pixels.

C#
public TileLayoutBuilder Height(string value)
Parameters:valuestring

The value for Height

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Height("500")
)

A value indicating whether keyboard navigation will be enabled.

C#
public TileLayoutBuilder Navigatable()
Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

A value indicating whether keyboard navigation will be enabled.

C#
public TileLayoutBuilder Navigatable(bool value)
Parameters:valuebool

The value for Navigatable

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Navigatable(true)
)

Determines whether the reordering functionality will be enabled.

C#
public TileLayoutBuilder Reorderable()
Returns:

TileLayoutBuilder

Returns the current instance of TileLayoutReorderableSettingsBuilder .

Determines whether the reordering functionality will be enabled.

C#
public TileLayoutBuilder Reorderable(Action<TileLayoutReorderableSettingsBuilder> configurator)
Parameters:configuratorAction<TileLayoutReorderableSettingsBuilder>

The TileLayoutReorderableSettingsBuilder for the reorderable setting.

Returns:

TileLayoutBuilder

Returns the current instance of TileLayoutBuilder .

Determines whether the reordering functionality will be enabled.

C#
public TileLayoutBuilder Reorderable(bool enabled)
Parameters:enabledbool

Enables or disables the reorderable option.

Returns:

TileLayoutBuilder

Returns the current instance of TileLayoutReorderableSettingsBuilder .

Determines whether the resizing functionality will be enabled.

C#
public TileLayoutBuilder Resizable()
Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Determines whether the resizing functionality will be enabled.

C#
public TileLayoutBuilder Resizable(bool value)
Parameters:valuebool

The value for Resizable

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Resizable(true)
)

Determines the height of the rows. Numeric values are treated as pixels.

C#
public TileLayoutBuilder RowsHeight(string value)
Parameters:valuestring

The value for RowsHeight

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.RowsHeight("235px")
)

Determines the width of the layout. Numeric values are treated as pixels.

C#
public TileLayoutBuilder Width(string value)
Parameters:valuestring

The value for Width

Returns:

TileLayoutBuilder

Returns the current TileLayoutBuilder instance.

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Width("400px")
)