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

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

Definition

Constructors

Initializes a new instance of the TreeMapEventBuilder class.

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

The TreeMap event handlers.

Methods

Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its dataSource.

C#
public TreeMapEventBuilder DataBound(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TreeMapEventBuilder

Returns the current instance of TreeMapEventBuilder .

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

Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its dataSource.

C#
public TreeMapEventBuilder DataBound(string handler)
Parameters:handlerstring

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

Returns:

TreeMapEventBuilder

Returns the current instance of TreeMapEventBuilder .

Example:
C#
@(Html.Kendo().TreeMap()
.Name("treeMap")
.Events(events =&gt; events.DataBound("onDataBound"))
)

Defines the handler of the ItemCreated client-side event. Fired when a tile has been created.

C#
public TreeMapEventBuilder ItemCreated(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

TreeMapEventBuilder

Returns the current instance of TreeMapEventBuilder .

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

Defines the handler of the ItemCreated client-side event. Fired when a tile has been created.

C#
public TreeMapEventBuilder ItemCreated(string handler)
Parameters:handlerstring

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

Returns:

TreeMapEventBuilder

Returns the current instance of TreeMapEventBuilder .

Example:
C#
@(Html.Kendo().TreeMap()
.Name("treeMap")
.Events(events =&gt; events.ItemCreated("onItemCreated"))
)