<kendo:grid-column-groupable-sort>

Sets the sort configuration when grouping.

Example

<kendo:grid-column-groupable>
    <kendo:grid-column-groupable-sort></kendo:grid-column-groupable-sort>
</kendo:grid-column-groupable>

Configuration Attributes

compare java.lang.String

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

Example

<kendo:grid-column-groupable-sort compare="compare">
</kendo:grid-column-groupable-sort>

dir java.lang.String

The sort order of the groups according to the group field.The supported values are: "asc" (ascending order) or "desc" (descending order).

Example

<kendo:grid-column-groupable-sort dir="dir">
</kendo:grid-column-groupable-sort>

Event Attributes

compare String

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

Example

<kendo:grid-column-groupable-sort compare="handle_compare">
</kendo:grid-column-groupable-sort>
<script>
    function handle_compare(e) {
        // Code to handle the compare event.
    }
</script>

Event Tags

kendo:grid-column-groupable-sort-compare

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

Example

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