Default Date & Text formatting of null values

Resolved
Sandip Savalia asked on March 22, 2018

We're using the compressor as a data source.  Is there a global way to not have null values default to: (blank) for text and (invalid date) for dates?
I currently have the following two related customizations.

  • formats: [{name: '', thousandsSeparator: ',', nullValue: ''}, {name: 'Share',isPercent: 'true'}]
  • options: datePattern: 'UTC:MM/dd/yy'

1 answer

Public
Ian Sadovy Ian Sadovy Flexmonster March 23, 2018

Hello Sandip,
 
Thank you for the question.
You can change these labels globally by using custom localization.
The following labels should work well for your case:

global: {
localization: {
grid: {
blankMember: "",
dateInvalidCaption: ""
}
}
}

Please find more details how to apply localization in the documentation - https://www.flexmonster.com/doc/localizing-component/
 
Please let me know if it works for you.
 
Regards,
Ian

Please login or Register to Submit Answer