Need a special offer?Find out if your project fits.
+

Handle nullable datetime field in flexmonster grid

Answered
Carlos Perez Ruiz asked on August 24, 2020

Hi,
I have a question.
 
I have a nullable datetime field in my datasource.
When i pass the data to the flexmonster compressor and the field is null, the compressor send empty value in the field value (attachment: "Compresso_Data_Sent.png") but the grid show "invalid datetime" in the field (attachment: "invalid_date.png").
I need to show empty value in the grid when the datetime field is null.
How can fix this?
(Flexmonster version: v2.8.2 and Compressor in .net)
 
Thanks for the help.
Regards.

1 answer

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster August 26, 2020

Hi Carlos,
 
Thank you for writing to us.
 
If you prefer not to display the "Invalid date" text when some dates are empty in the input data, it is recommended to change the default message to an empty string with the help of Flexmonster localization:
 

report: {
localization: {
"grid": {
"dateInvalidCaption": "",
}
},
...
}

 
For more information on component localization feel free to check out the following guide: https://www.flexmonster.com/doc/localizing-component/
 
Please let us know if this helps.
 
Best regards,
Mykhailo

Please login or Register to Submit Answer