如何更改kendo TreeMap主题

时间:2015-04-07 15:13:50

标签: kendo-ui kendo-asp.net-mvc kendo-dataviz

我有一个使用剃刀语法的Kendo UI TreeMap:

@(Html.Kendo().TreeMap()
    .Name("treeMap")
    .DataSource(dataSource => dataSource
        .Read(read => read.Action("_PopulationUSA", "TreeMap"))
        .Model(m => m.Children("Items")))
    .ValueField("Value")
    .TextField("Name")
    .HtmlAttributes(new { style = "height:600px" })
)

如何将默认主题更改为自定义主题?

1 个答案:

答案 0 :(得分:0)

.Theme("BlueOpal")应该有效,也许你只是拼写了#34; BlueOpal"错?

@(Html.Kendo().TreeMap()
    .Name("treeMap")
    .Theme("BlueOpal")
    .DataSource(dataSource => dataSource
        .Read(read => read.Action("_PopulationUSA", "TreeMap"))
        .Model(m => m.Children("Items")))
    .ValueField("Value")
    .TextField("Name")
    .HtmlAttributes(new { style = "height:600px" })
)