public interface ExportFormatting
For server-based exports (ListGrid
or DataSource.exportData()):
exportAs
is a spreadsheet format (XLS or
OOXML), dsField.format or
dsField.exportFormat
will be used if specified, otherwise, dateFormatter
will be used if
specified, otherwise, no formatting will be applied and the date or number will be shown
in the spreadsheet program's default formatting. exportRawValues
to false, format settings available to server will be used, exactly as
explained above for spreadsheet exports with exportData()
. ListGrid.exportClientData()
): exportAs
is a spreadsheet format (XLS or
OOXML), rules are the same as for server-driven export except that
dateFormatter
settings on client-side UI components will be used if a
built-in formatter is used (for example, if dateFormatter
is set to the
built-in formatter "toEuropeanShortDate")). If you need date values to appear
exactly as shown to the user, set exportDatesAsFormattedString
, but see the docs for this property for the drawbacks of
doing this. exportClientData()
rather than
exportData()
is precisely to create a fully formatted export). If you
instead set exportRawValues
to true, only standard formats appropriate to data interchange are used,
the same as described for exportData()
above.