Class JqGridColumnFormatterAttribute
Specifies the custom formatter for column
Inheritance
Namespace: Lib.AspNetCore.Mvc.JqGrid.DataAnnotations
Assembly: Lib.AspNetCore.Mvc.JqGrid.DataAnnotations.dll
Syntax
public sealed class JqGridColumnFormatterAttribute : Attribute
Constructors
JqGridColumnFormatterAttribute(String)
Initializes a new instance of the JqGridColumnFormatterAttribute class.
Declaration
public JqGridColumnFormatterAttribute(string formatter)
Parameters
Type | Name | Description |
---|---|---|
System.String | formatter | The predefined formatter type ('' delimited string) or custom JavaScript formatting function name. |
Properties
AddParam
Gets or sets the additional parameter which can be added after the IdName property.
Declaration
public string AddParam { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BaseLinkUrl
Gets or sets the link for showlink formatter.
Declaration
public string BaseLinkUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DecimalPlaces
Gets or sets the decimal places.
Declaration
public int DecimalPlaces { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DecimalSeparator
Gets or sets the decimal separator.
Declaration
public string DecimalSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DefaultValue
Gets or sets the default value.
Declaration
public string DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Disabled
Gets or sets the value indicating if checkbox is disabled.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Formatter
Gets the predefined formatter type ('' delimited string) or custom JavaScript formatting function name.
Declaration
public string Formatter { get; }
Property Value
Type | Description |
---|---|
System.String |
FormatterOptions
Gets the options for predefined formatter (every predefined formatter uses only a subset of all options), which are overwriting the defaults from the language file.
Declaration
public JqGridColumnFormatterOptions FormatterOptions { get; }
Property Value
Type | Description |
---|---|
JqGridColumnFormatterOptions |
IdName
Gets or sets the first parameter that is added after the ShowAction.
Declaration
public string IdName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Label
Gets or sets the text to show in the button for jQuery UI Button widget.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClick
Gets or sets the click handler (JavaScript) for jQuery UI Button widget.
Declaration
public string OnClick { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OutputFormat
Gets or sets the date output format.
Declaration
public string OutputFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Prefix
Gets or sets the currency prefix.
Declaration
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrimaryIcon
Gets or sets the primary icon class (form UI theme icons) for jQuery UI Button widget.
Declaration
public string PrimaryIcon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SecondaryIcon
Gets or sets the secondary icon class (form UI theme icons) for jQuery UI Button widget.
Declaration
public string SecondaryIcon { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ShowAction
Gets or sets the additional value which is added after the BaseLinkUrl.
Declaration
public string ShowAction { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SourceFormat
Gets or sets the date source format.
Declaration
public string SourceFormat { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Suffix
Gets or sets the currency suffix.
Declaration
public string Suffix { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Target
Gets or sets the target.
Declaration
public string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Text
Gets or sets the value whether to show the label in jQuery UI Button widget.
Declaration
public bool Text { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ThousandsSeparator
Gets or sets the thousands separator.
Declaration
public string ThousandsSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UnFormatter
Gets or sets the custom function to "unformat" a value of the cell when used in editing or client-side sorting
Declaration
public string UnFormatter { get; set; }
Property Value
Type | Description |
---|---|
System.String |