# TreeMapEventBuilder

## Methods

### ItemCreated(System.String)

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

For more information see [ItemCreated](https://docs.telerik.com/kendo-ui/api/ui/treemap/events/itemcreated) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

Returns the current instance of [TreeMapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treemapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().TreeMap()
               .Name("treeMap")
               .Events(events => events.ItemCreated("onItemCreated"))
             )
             
```

### ItemCreated(System.Func)

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

For more information see [ItemCreated](https://docs.telerik.com/kendo-ui/api/ui/treemap/events/itemcreated) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [TreeMapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treemapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().TreeMap()
               .Name("treeMap")
               .Events(events => events.ItemCreated(@<text>
                    function(e) {
                        // Handle the ItemCreated event inline.
                    }
                    </text>)
                )
             )
             
```

### DataBound(System.String)

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

For more information see [DataBound](https://docs.telerik.com/kendo-ui/api/ui/treemap/events/databound) event.

#### Parameters

##### handler - `System.String`

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

#### RETURNS

Returns the current instance of [TreeMapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treemapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().TreeMap()
               .Name("treeMap")
               .Events(events => events.DataBound("onDataBound"))
             )
             
```

### DataBound(System.Func)

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

For more information see [DataBound](https://docs.telerik.com/kendo-ui/api/ui/treemap/events/databound) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [TreeMapEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treemapeventbuilder) .

#### Example

```
 
             @(Html.Kendo().TreeMap()
               .Name("treeMap")
               .Events(events => events.DataBound(@<text>
                    function(e) {
                        // Handle the DataBound event inline.
                    }
                    </text>)
                )
             )
             
```
