Raised when a header cell's contents are about to be rendered, to allow custom drawing.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
EventDispatcher customDrawHeader |
The event handler method receives the following arguments:
sender
A Grid instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A CellCustomDrawEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
The following code handles the customDrawHeader event of Grid:
JavaScript Copy Code |
---|
grid.customDrawHeader.addEventListener(function (sender, args) if (args.column === 4 || args.column === 5) div.appendChild(args.defaultContent); |