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

Defines the fluent API for configuring the Telerik UI TileLayout for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the TileLayout class.

C#
public TileLayoutBuilder(TileLayout component)
Parameters:componentTileLayout

The component.

Methods

Defines the number of columns.

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

The value that configures the number of columns.

Returns:

TileLayoutBuilder

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

Determines the width of the columns. The numeric values are treated as pixels.

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

The value that configures the width of the columns.

Returns:

TileLayoutBuilder

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

Defines the TileLayout items and their settings.

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

The action that configures the containers.

Returns:

TileLayoutBuilder

Configures the handled client-side events of the TileLayout.

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

The action that configures the available events.

Returns:

TileLayoutBuilder

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

Defines the horizontal and vertical spacing between the layout items.

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

The action that configures the spacing.

Returns:

TileLayoutBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Gap(gap =&gt; gap.Rows(30).Columns(20))
)

Determines the height of the layout. The numeric values are treated as pixels.

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

The value that configures the height.

Returns:

TileLayoutBuilder

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

Enables the keyboard navigation. By default, the option is disabled.

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

The value that configures the Navigatable option.

Returns:

TileLayoutBuilder

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

Determines whether the reordering functionality will be enabled.

C#
public TileLayoutBuilder Reorderable()
Returns:

TileLayoutBuilder

Determines the reordering functionality settings.

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

The action that configures the reorderable settings.

Returns:

TileLayoutBuilder

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tileLayout")
.Reorderable(r =&gt; r.ClickMoveClick(true))
)

Determines whether the reordering functionality will be enabled.

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

Enables or disables the reordering functionality.

Returns:

TileLayoutBuilder

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

Enables the resizing functionality. By default, the option is disabled.

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

The value that configures the Resizable option.

Returns:

TileLayoutBuilder

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

Determines the height of the rows. The numeric values are treated as pixels.

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

The value that configures the height of the rows.

Returns:

TileLayoutBuilder

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

Determines the width of the layout. The numeric values are treated as pixels.

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

The value that configures the width.

Returns:

TileLayoutBuilder

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