columnHide
Event fires when column is hidding
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
column | {object} | The data about the column that is hidding |
Examples
<table id="grid"></table>
<script>
var grid = $("#grid").grid({
dataSource: "../Grid/GetPlayers",
columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth" } ]
});
grid.on("columnHide", function (e, column) {
alert('The ' + column.field + ' column is hidden.');
});
grid.hideColumn("PlaceOfBirth");
</script>