I need to highlight a row by giving different font color based on a condition in outsystems datagrid. If anyone know the solution, can help me on this?
Hello @Suriyakala S
That scenario is a perfect fit for the Conditional Format feature that you can see described (and with working examples available for download on the Forge) on the OutSystems Data Grid Sample.
Best Regards,GM
@Suriyakala S it that a table record or datagrid?
can you specify more to help you better.
BR,
Pankaj
I'm using the datagrid.
For example, i need to check the condition with one of date column value, the conditions are
The Date within next 7 days - font color = blue
The Date within next 2 days - font color = orange
The Date prior to today - font color = red, bold.
This would apply to the text in all columns of the entire row.
Hi Suriyakala,
You can use the approach suggested in these post that addresses the same use case:
set-conditional-format-to-the-dataGrid-row
data-grid-highlight-entire-row-based-on-condition
set-row-background-depending-on-cell-value
how-to-change-color-of-one-cell-depending-on-other-cell-value-in-data-grid
PS: For better clarity, I have tagged OutSystems DataGrid Forge Asset to the post.
Kind regards,
Benjith Sam