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

Resize

methods

Adjusts the treeMap layout to match the size of the container.

<div id="treeMap" style="width: 400px;"></div>
<script>
    $(function(){
        $("#treeMap").kendoTreeMap({
            dataSource: {
                data: [{
                    name: "foo",
                    value: 1,
                    color: "red",
                    id: 1
                }]
            },
            valueField: "value",
            textField: "name",
            colorField: "color"
        });

        $("#treeMap").css("width", "800px");
        var treeMap = $("#treeMap").getKendoTreeMap();
        treeMap.resize();
    });
</script>
Not finding the help you need?
Contact Support