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

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

Definition

Constructors

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

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(string handler)
Parameters:handlerstring

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

Returns:

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(string handler)
Parameters:handlerstring

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

Returns:

TreeMapEventBuilder

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