我有一个使用剃刀语法的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" })
)
如何将默认主题更改为自定义主题?
答案 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" })
)