
|
|
Cell validation is important on the primary key column to avoid any server error or exception. The primary key column is assigned using the IDFieldName property. Usually, it is the id column.
|
"cellEditor": { // optional: defines cell-editing options for this column
"enabled": true, // *{boolean} to indicate whether cell editing is enable for this column
"validator": { // optional: when defined will validate input values against the chosen validator types and error and success messages will be displayed.
"types": ['NotEmpty'], // {Array} optional: defines list of validator types, e.g. 'NotEmpty', 'ValidURL' or 'Custom'.
"errorMessage": "[[invalidNumberNotEmpty]]", // *{string} localization token name of the error message.
"errorStyle": "cellValidationErrorStyle" // *{string} style definition name of the error message. }
}
"cellValidationErrorStyle": {
"backgroundColor": "",
"secondaryBackgroundColor": "",
"foregroundColor": "black",
"textDecoration": "none",
"image": "",
"lineColor": "red",
"borderStyle": "solid",
"borderWidth": "1px",
"fontFamily": ["helvetica", "arial"],
"fontStyle": "normal",
"fontSize": "11px",
"fontWeight": "normal"
},
"cellValidationErrorTooltipStyle": {
"backgroundColor": "red",
"secondaryBackgroundColor": "",
"foregroundColor": "white",
"textDecoration": "none",
"image": "",
"lineColor": "white",
"borderStyle": "solid",
"borderWidth": "1px",
"fontFamily": ["helvetica", "arial"],
"fontStyle": "normal",
"fontSize": "11px",
"fontWeight": "normal"
},
"tooltipStyle": {
"backgroundColor": "#0000ff",
"secondaryBackgroundColor": "",
"foregroundColor": "#ffffff",
"textDecoration": "",
"image": "",
"lineColor": "",
"borderStyle": "none",
"borderWidth": "",
"fontFamily": ["helvetica", "arial"],
"fontStyle": "normal",
"fontSize": "12px",
"fontWeight": ""
},
|
Renderer
|
Validators
|
|---|---|
|
string
|
<None>, NotEmpty, ValidURL
|
|
integer
|
<None>, NotEmpty, (ValidInteger is default)
|
|
long
|
<None>, NotEmpty, (ValidNumeric is default)
|
|
number
|
<None>, NotEmpty, (ValidNumeric is default)
|
|
boolean
|
<None>, NotEmpty, (ValidBoolean is default)
|
|
location
|
<None>, NotEmpty, (ValidLocation is default)
|
|
html
|
<None>, NotEmpty
|
|
imagelink
|
<None>, NotEmpty
|
|
hyperlink
|
<None>, NotEmpty, ValidURL
|
|
datetime
|
<None>, NotEmpty, (ValidDatetime is default)
|