Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

set dateInvalidCaption: ‘someSymbol’ only for one column

Answered
Denis asked on August 18, 2020

Hi all! I have for example 4 date columns and I need to show empty column if date is null this is for all columns, but for just one column I need to show – (dash) if date is null. Is it posible?
”, ”, -, ” – for example
 

2 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster August 18, 2020

Hello, Denis,
 
Thank you for reaching out to us.
 
The desired functionality can be achieved by using the customizeCell API call provided by Flexmonster. It allows performing customization of separate cells.
For example, in your case, the function passed to the customizeCell API call can be similar to the following:

flexmonster.customizeCell((cell, data) => {
if (data.hierarchy && data.hierarchy.uniqueName == "Date 4" && data.value == "")
cell.text = "-";
})

In such a case, the “Date 4” field will have the dash instead of an empty cell.
 
Please see an example we have prepared for you.
 
We hope it works for your case.
Please contact us in case other questions arise.
 
Regards,
Illia

Public
Denis August 18, 2020

Tnx a lot!

Please login or Register to Submit Answer