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