resize

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

Example

<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>

Parameters

force Boolean optional

Defines whether the widget should proceed with resizing even if the element dimensions have not changed.

In this article