Highlight Invalid Cells

Tags: #<Tag:0x00007f0b0920cdb0>

Dear Team,

I need help on data validation on cross cells
image

Col1 and Col2 will highlight error message only if both columns are blank.

I added validator to Col1 & Col2 during column mapping without using beforeValidation & afterValidation. As of now I get expected behavior for single cell validation.

To highlight both the cells, I used setCellMeta and got non-selected cell and set isValid and ClassName properties.

This highlight failed, when table render. Any help.

Thanks

.

Hey @bhakat.sandip

here’s a full article about cell dependencies with example that relate to column data https://handsontable.com/blog/articles/2016/4/expand-your-app-with-cell-dependencies
If you’d need further guidance please let me know.

Hi @aleksandra_budnik,

Thanks for your response.

setCellMeta didn’t work in my code; because of I changed cell selection on tab/ click. Now it’s working.

Thanks again.

You’re welcome. Thank you for the update.

I guess that we can close the topic.