items.formatString
The format that is applied to the value before it is displayed. Takes the {0:format} form where format is a standard number format, custom number format, standard date format or a custom date format.
The
kendo.formatfunction is used to format the value.
Example
<div id="propertyGrid"></div>
<script>
$("#propertyGrid").kendoPropertyGrid({
items: [
{ field: "price", format: "{0:C2}" },
{ field: "percent", format: "{0:P}" },
{ field: "date", format: "{0:MM/dd/yyyy}" }
],
model: {
price: 999.99,
percent: 0.15,
date: new Date(2023, 5, 15)
}
});
</script>