sortable.initialDirection String
(default: asc)
Determines the inital (from un-sorted to sorted state) sort direction. The supported values are asc
and desc
.
Example - disable sorting
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "id" },
{ field: "name" }
],
sortable: {
initialDirection: "desc"
},
dataSource: [ { id: 1, name: "Jane Doe" }, { id: 2, name: "John Doe" } ]
});
</script>