showColumn Returns: grid
Show hidden column.
Parameters
Name | Type | Description |
---|---|---|
field | {string} | The name of the field bound to the column. |
Examples
<button id="btnShowColumn">Show Column</button>
<br/><br/>
<table id="grid"></table>
<script>
var grid = $("#grid").grid({
dataSource: "../Grid/GetPlayers",
columns: [ { field: "ID" }, { field: "Name" }, { field: "PlaceOfBirth", hidden: true } ]
});
$("#btnShowColumn").on("click", function () {
grid.showColumn("PlaceOfBirth");
});
</script>