<kendo:treeList-column-sortable>

If set to true and sorting is enabled, the user can click the column header and sort the TreeList by the column field. If set to false, sorting will be disabled for this column. By default, all columns are sortable if sorting is enabled though the sortable option.

Example

<kendo:treeList-column>
    <kendo:treeList-column-sortable></kendo:treeList-column-sortable>
</kendo:treeList-column>

Configuration Attributes

compare java.lang.String

A JavaScript function for comparing the values. If the first argument is less than the second one, returns -1.; If both arguments are the same, returns 0. or If the first argument is greater than the second one, returns +1..

Example

<kendo:treeList-column-sortable compare="compare">
</kendo:treeList-column-sortable>

Event Attributes

compare String

A JavaScript function for comparing the values. If the first argument is less than the second one, returns -1.; If both arguments are the same, returns 0. or If the first argument is greater than the second one, returns +1..

Example

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

Event Tags

kendo:treeList-column-sortable-compare

A JavaScript function for comparing the values. If the first argument is less than the second one, returns -1.; If both arguments are the same, returns 0. or If the first argument is greater than the second one, returns +1..

Example

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