Data rendering (formatting) and editing in Risksheet

Modified on Mon, 28 Jul at 1:51 PM

The data format is influenced by two settings:

  1. The country/culture set in Countries - supported in the Globalization > Cultures
  2. The format of the column in Risksheet Document Config File - risksheet.json - format reference


On this page, we describe the available formats you can use in settings #2


The examples are rendered with country/culture set to default, i.e., en (English/US).


TABLE OF CONTENTS


Configuration

Date example

Add the property "format": "d", to your desired column.

      "headerGroup": "Potential Failure",
      "headerGroupCss": "headPotentialRisks",
      "headerCss": "headPotentialRisks",
      "header": "Date of Birth",
      "bindings": "dob",
      "id": "dob",
      "format": "d",
      "filterable": true,
      "width": 150,
      "collapseTo": true,
      "level": 2


As a result, you can see the format of the date has changed to Short Date Pattern - MM-DD-YYYY.



Numbers

Note: the * below refers to a number, e.g., * = 2 means the number to two decimal places.


Formatdescriptionresult
n*Number1,234.57
n*,Number (thousands)1.23
n*,,Number (millions)0.00
f*Fixed-point1234.57
g*General (no trailing zeros)1234.57
d*Decimal (integers)1235
x*Hexadecimal (integers)4d3
c*Currency$1,234.57
c*€Currency (explicit currency symbol)€1,234.57
c*Currency (no currency symbol)1,234.57
p*Percent123,457.00%

Dates

Formatdescriptionresult
dShort Date Pattern2/6/2021
DLong Date PatternSaturday, February 06, 2021
fFull Date/Time Pattern (short time)Saturday, February 06, 2021 1:36 PM
FFull Date/Time Pattern (long time)Saturday, February 06, 2021 1:36:27 PM
tShort Time Pattern1:36 PM
TLong Time Pattern1:36:27 PM
'Q'Q yyyyQuarter/YearQ1 2021
MMMM dd, yyyyCustom formatFebruary 06, 2021

For any assistance, please don’t hesitate to reach out by submitting a ticket here.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article