inPlaceSortBoolean(default: false)

If set to true, the original Array used as data will be sorted when sorting operation is performed. This setting supported only with local data, bound to a JavaScript array via the data option.

Example

<div id="grid"></div>
<script>
var originalArray = [
  { name: "John", age: 25 },
  { name: "Jane", age: 30 },
  { name: "Bob", age: 20 }
];

var dataSource = new kendo.data.DataSource({
  data: originalArray,
  inPlaceSort: true,
  sort: { field: "name", dir: "asc" }
});

dataSource.read();

// The original array is now sorted in place
console.log(originalArray[0].name); // "Bob"

$("#grid").kendoGrid({
  dataSource: dataSource
});
</script>
In this article
inPlaceSort
Not finding the help you need?
Contact Support