<kendo:dataSource-groupItem>

The grouping configuration of the data source. If set, the data items will be grouped when the data source is populated. By default, grouping is not applied.

Example

<kendo:dataSource-group>
    <kendo:dataSource-groupItem></kendo:dataSource-groupItem>
</kendo:dataSource-group>

Configuration Attributes

compare java.lang.String

A JavaScript function which is used to compare the groups (refer to sort.compare for comparing the items of the groups). It has the same signature as the compare function accepted by Array.sort.

Example

<kendo:dataSource-groupItem compare="compare">
</kendo:dataSource-groupItem>

dir java.lang.String

The sort order of the group.The supported values are: "asc" (ascending order) or "desc" (descending order). The default sort order is ascending.

Example

<kendo:dataSource-groupItem dir="dir">
</kendo:dataSource-groupItem>

field java.lang.String

The data item field to group by.

Example

<kendo:dataSource-groupItem field="field">
</kendo:dataSource-groupItem>

Configuration JSP Tags

kendo:dataSource-groupItem-aggregates

The aggregates which are calculated during grouping.The supported aggregates are: "average"; "count"; "max"; "min" or "sum".

More documentation is available at kendo:dataSource-groupItem-aggregates.

Example

<kendo:dataSource-groupItem>
    <kendo:dataSource-groupItem-aggregates></kendo:dataSource-groupItem-aggregates>
</kendo:dataSource-groupItem>

Event Attributes

compare String

A JavaScript function which is used to compare the groups (refer to sort.compare for comparing the items of the groups). It has the same signature as the compare function accepted by Array.sort.

Example

<kendo:dataSource-groupItem compare="handle_compare">
</kendo:dataSource-groupItem>
<script>
    function handle_compare(e) {
        // Code to handle the compare event.
    }
</script>

Event Tags

kendo:dataSource-groupItem-compare

A JavaScript function which is used to compare the groups (refer to sort.compare for comparing the items of the groups). It has the same signature as the compare function accepted by Array.sort.

Example

<kendo:dataSource-groupItem>
    <kendo:dataSource-groupItem-compare>
        <script>
            function(e) {
                // Code to handle the compare event.
            }
        </script>
    </kendo:dataSource-groupItem-compare>
</kendo:dataSource-groupItem>
In this article
Not finding the help you need?