BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
groupSettings: {
captionTemplate:
"<div><strong>${key}</strong> ${if(count === 1)}<span>${count} record</span>${else}<span>${count} Records</span> ${/if}</div>",
columns: ["CustomerID"]
} |
groupSettings: {
captionTemplate:
"${if(field === 'Freight')} $ ${/if}${key} ${if(count === 1)} ${count} record ${else} ${count} Records ${/if}",
columns: ["Freight"]
} |
export default {
data() {
return {
data: data,
currencySymbol: {
"USD": "$",
"EUR": "€"
},
groupSettings: {
columns: ["Freight"]
}
};
},
methods: {
// Grid’s load event function
onLoad() {
// Get the currency code
var currencyCode = this.$refs.grid.ej2Instances.currencyCode;
// Define the captionTemplate based on the currency code
this.$refs.grid.ej2Instances.groupModule.groupSettings.captionTemplate = "${if(field === 'Freight')}" + this.currencySymbol[currencyCode] + "${/if}${key} ${if(count === 1)} ${count} record ${else} ${count} Records ${/if}";
}
}
} |