reorderColumn
Changes the position of the specified column.
Parameters
destIndex Number
The new position of the column. The destination index should be calculated with regard to all columns, including the hidden ones.
column Object
The column whose position should be changed.
Example - move a column
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" }
],
dataSource: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
]
});
var grid = $("#grid").data("kendoGrid");
grid.reorderColumn(1, grid.columns[0]);
</script>