A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/columnunlock below:

columnUnlock - API Reference - Kendo UI Grid

Fired when the user unlock a column.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data e.column Object

A JavaScript object which represents the column configuration.

e.sender kendo.ui.Grid

The widget instance which fired the event.

Example - subscribe to the "columnUnlock" event during initialization
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "id", width: 100, locked: true },
    { field: "name", width: 100 },
    { field: "age", width: 50 }
  ],
  dataSource: [
    { name: "Jane Doe", age: 30, id: 1 },
    { name: "John Doe", age: 33, id: 2 }
  ],
  columnMenu: true,
  columnUnlock: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.column.field); // displays the field of the just unlocked column
  }
});
</script>
Example - subscribe to the "columnUnlock" event after initialization
<div id="grid"></div>
<script>
function grid_columnUnlock(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(e.column.field); // displays the field of the just unlocked column
}
$("#grid").kendoGrid({
  columns: [
    { field: "id", width: 100, locked: true },
    { field: "name", width: 100 },
    { field: "age", width: 50 }
  ],
  dataSource: [
    { name: "Jane Doe", age: 30, id: 1 },
    { name: "John Doe", age: 33, id: 2 }
  ],
  columnMenu: true
});
var grid = $("#grid").data("kendoGrid");
grid.bind("columnUnlock", grid_columnUnlock);
</script>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4