<kendo:treeList-column-sortable>

If set to true the user can click the column header and sort the treelist by the column field when sorting is enabled. If set to false sorting will be disabled for this column. By default all columns are sortable if sorting is enabled via 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 which is used to compare the values - should return -1 if first argument is less than second one, 0 if both are the same or +1 if the first one is greater than second one.

Example

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

Event Attributes

compare String

A JavaScript function which is used to compare the values - should return -1 if first argument is less than second one, 0 if both are the same or +1 if the first one is greater than second one.

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 which is used to compare the values - should return -1 if first argument is less than second one, 0 if both are the same or +1 if the first one is greater than second one.

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy