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

GroupHeaderTemplate

configuration

Provides an option to customize the default template for the group label (using the field value and name by default).

groupHeaderTemplate

String|Function

Default: null

<div id="orgchart"></div>

<script>
    $("#orgchart").kendoOrgChart({
        groupField: "title",
        groupHeaderTemplate: "<span>#: value # #: field #</span>",
        dataSource: [
            { id: 1, name: "Jane", title: "Boss", expanded: true },
            { id: 2, name: "John", title: "Lead", expanded: true, parentId: 1 },
            { id: 3, name: "Jill", title: "Worker", expanded: true, parentId: 2 },
            { id: 4, name: "James", title: "Worker", expanded: true, parentId: 2 },
        ]
    });
</script>
Not finding the help you need?
Contact Support