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

TreeMapBuilder

Defines the fluent API for configuring the Kendo UI TreeMap

Properties

WriteAction - Func

Methods

DataSource(System.Action)

Configure the DataSource of the component

Parameters

configurator - System.Action<HierarchicalDataSourceBuilder>

The action that configures the Kendo.Mvc.UI.Fluent.TreeMapBuilder.DataSource(System.Action{Kendo.Mvc.UI.Fluent.HierarchicalDataSourceBuilder{System.Object}}).

Example


             <%= Html.Kendo().TreeMap()
                .Name("treeMap")
                .DataSource(dataSource => dataSource
                    .Read(read => read
                        .Action("Action", "TreeMap")
                    )
                )
             %>

Colors(System.Action)

The default colors for the treemap tiles. When all colors are used, new colors are pulled from the start again.

Parameters

configurator - System.Action<TreeMapColorRangeFactory>

The add action.

AutoBind(System.Boolean)

If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.

Parameters

value - System.Boolean

The value for AutoBind

Theme(System.String)

The theme of the TreeMap.

Parameters

value - System.String

The value for Theme

ValueField(System.String)

The data item field which contains the tile value.

Parameters

value - System.String

The value for ValueField

ColorField(System.String)

The data item field which contains the tile color.

Parameters

value - System.String

The value for ColorField

TextField(System.String)

The data item field which contains the tile title.

Parameters

value - System.String

The value for TextField

Template(System.String)

The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..

Parameters

value - System.String

The value for Template

TemplateId(System.String)

The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..

Parameters

templateId - System.String

The ID of the template element for Template

Colors(System.String[])

The default colors for the TreeMap items (tiles). Can be set to array of specific colors or array of color ranges. For more information on the widget behavior, see the Colors section on the TreeMap Overview page.

Parameters

value - System.String[]

The value for Colors

Type(Kendo.Mvc.UI.TreeMapType)

The layout type for the Treemap.

Parameters

value - TreeMapType

The value for Type

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<TreeMapEventBuilder>

The client events action.

Example


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

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

In this article
Not finding the help you need?