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

PushMove

methods

Moves the specified data items to the data source without marking them as "new". The data source cannot reorder data items to the server without explicit knowledge of the sorting mechanism. Therefore, this is an explicitly client-side operation.

Parameters:indexNumber

The zero-based index at which the data item should be moved to.

itemsObject|Array

The data item or data items to append to the data source.

<script>
var dataSource = new kendo.data.DataSource({
  schema: {
    model: {
      id: "id"
    }
  }
});
dataSource.pushCreate([{ id: 1, name: "John Doe" }, { id: 2, name: "Alex" }, { id: 3, name: "Peter" }]);

/* Move the first item to second position. */
dataSource.pushMove(2, dataSource.at(0));

  /* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dataSource.at(1).name); // displays "John Doe"
  /* The result can be observed in the DevTools(F12) console of the browser. */
console.log(dataSource.at(1).isNew()); // displays "false"
</script>
Not finding the help you need?
Contact Support