New to Kendo UI for jQuery? Start a free 30-day trial

SetOptions

methods

Sets the widget options. Changes are cumulative.

Parameters:optionsObject

The treeMap settings to update.

<div id="treeMap"></div>
<script>
$("#treeMap").kendoTreeMap({
    dataSource: {
        data: [{
            name: "foo",
            value: 1,
            items: [{
                name: "bar",
                value: 1
            },{
                name: "baz",
                value: 1
            }]
        }],
        schema: {
            model: {
                children: "items"
            }
        }
    },
    valueField: "value",
    textField: "name"
});

var treeMap = $("#treeMap").getKendoTreeMap();
treeMap.setOptions({ type: "horizontal" });
</script>
Not finding the help you need?
Contact Support