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

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

Definition

Constructors

Initializes a new instance of the TileLayoutEventBuilder class.

C#
public TileLayoutEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The TileLayout event handlers.

Methods

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the TileLayout is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public TileLayoutEventBuilder KendoKeydown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TileLayoutEventBuilder

Returns the current instance of TileLayoutEventBuilder .

Defines the handler of the KendoKeydown client-side event. Triggered when the user presses a keyboard key while the TileLayout is focused.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public TileLayoutEventBuilder KendoKeydown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the KendoKeydown event.

Returns:

TileLayoutEventBuilder

Returns the current instance of TileLayoutEventBuilder .

Defines the handler of the Reorder client-side event. Fired when a tile item is reordered.

C#
public TileLayoutEventBuilder Reorder(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TileLayoutEventBuilder

Returns the current instance of TileLayoutEventBuilder .

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Events(events =&gt; events.Reorder(@&lt;text&gt;
function(e) {
// Handle the Reorder event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the Reorder client-side event. Fired when a tile item is reordered.

C#
public TileLayoutEventBuilder Reorder(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Reorder event.

Returns:

TileLayoutEventBuilder

Returns the current instance of TileLayoutEventBuilder .

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Events(events =&gt; events.Reorder("onReorder"))
)

Defines the handler of the Resize client-side event. Fired when a tile item is resized.

C#
public TileLayoutEventBuilder Resize(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TileLayoutEventBuilder

Returns the current instance of TileLayoutEventBuilder .

Example:
C#
@(Html.Kendo().TileLayout()
.Name("tilelayout")
.Events(events =&gt; events.Resize(@&lt;text&gt;
function(e) {
// Handle the Resize event inline.
}
&lt;/text&gt;)
)
)

Defines the handler of the Resize client-side event. Fired when a tile item is resized.

C#
public TileLayoutEventBuilder Resize(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Resize event.

Returns:

TileLayoutEventBuilder

Returns the current instance of TileLayoutEventBuilder .

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