New to Kendo UI for jQueryStart a free 30-day trial

InPlaceSort

configuration

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.

Default: false

<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>
Not finding the help you need?
Contact Support