Edit this page


Retrieves the options that are currently enabled or disabled on the Grid, also gives the current state of the dataSource. Use this method if you want to save the state of the Grid into a variable. It is also possible to extract and store only some of the Grid options.

Please refer to the setOptions() method documentation for more important information.



Object The configuration options of the widget.

Example - expand the first master table row

<div id="grid"></div>
  columns: [
    { field: "name" },
    { field: "age" }
  sortable: true,
  dataSource: [
      { name: "Jane Doe", age: 30 },
      { name: "John Doe", age: 33 }
var grid = $("#grid").data("kendoGrid");
var options = grid.getOptions();
console.log(options.sortable); //outputs true

// get only the Grid column settings
var columnOptionsForSaving = kendo.stringify(options.columns);