columnShow
Fires when the user shows a column. The event handler function context (available through 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.Gantt
The widget instance which fired the event.
Example
<div id="gantt"></div>
<script>
$("#gantt").kendoGantt({
columns: ["title", "start", "end"],
dataSource: [{
id: 1,
orderId: 0,
parentId: null,
title: "Task1",
start: new Date("2014/6/17 9:00"),
end: new Date("2014/6/17 11:00")
}],
columnMenu: true,
columnShow: 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 shown column
}
});
</script>