#108856
FerrisChamp
Participant

Hi,

Update by calling a JS function, I was able to see the updates with the conditional formatting property.

window.GetConditionalFormatting = () => {
const grid = document.getElementById(“io-page-grid”);
const format = grid.conditionalFormatting
console.log(format);
return format;

}

This is what I get:

column: “all”

condition: “equal”

firstValue: “0”

fontFamily: “Roboto, \\\”Helvetica Neue\\\”, sans-serif”

fontSize: “14px”
highlight: “#9FC5E8”

secondValue: 1

text: “#5A5A5A”

 

However, when trying to return the data to my C# code:

List<GridConditionalFormatting> formatting = await JS.InvokeAsync<List<GridConditionalFormatting>>(“GetConditionalFormatting”);

I get something different instead:

column: “all”

condition: “LessThan”

firstValue: “0”

fontFamily: “”

fontSize: “The default fontSize as set in CSS”
highlight: “The default backgroundColor as set in CSS”

secondValue: 1

text: “The default color as set in CSS”

The values of some of the properties seem to be different. Could you help me correct this issue?

Thank you,

Ferris

  • This reply was modified 9 months, 4 weeks ago by FerrisChamp.
  • This reply was modified 9 months, 4 weeks ago by FerrisChamp. Reason: formatting issues
  • This reply was modified 9 months, 4 weeks ago by FerrisChamp.
  • This reply was modified 9 months, 4 weeks ago by FerrisChamp.