Skip to content

ReportColumnOptionsAttribute class

namespace: Serenity.Reporting   assembly: Serenity.Net.Services

Sets the options of the report column of a property, e.g. the kind of its values and its total, which ReportColumnConverter copies to the ReportColumn it creates.

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class ReportColumnOptionsAttribute : Attribute
parameter description
kind The kind of the values of the column.

Public Members

name description
ReportColumnOptionsAttribute(…) Sets the options of the report column of a property, e.g. the kind of its values and its total, which ReportColumnConverter copies to the ReportColumn it creates.
Kind { get; } The kind of the values of the column.
Link { get; set; } The link of the values of the column, with the names of the properties of the row in braces, e.g. "~/Northwind/Customer#view/".
Tone { get; set; } The name of the property of the row that holds the tone of the value, i.e. "ok", "warn", "danger", "info" or "muted", which shows the value as a badge.
Total { get; set; } How the total of the column is computed.

See Also