DayPilot.Scheduler.onBeforeCellExport

Fired during image export (JPEGPNGSVG) and direct printing. Allows you to provide alternative text for the grid cell (image export doesn't support HTML in grid cells).

Declaration

DayPilot.Scheduler.onBeforeCellExport(args);

Parameters

  • args.cell - exported grid cell object (read-only)
  • args.text - exported text
  • args.horizontalAlignment
  • args.backColor

The "args" object is the same instance that is used in onBeforeCellRender (which is called right before onBeforeCellExport).

Example

Basic HTML to text conversion - replaces line breaks:

dp.onBeforeEventExport = function(args) {
  args.text = args.e.client.html().replace("<br>", "\n");
};

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java