Image Onload Technique - Can I color columns in Grid Edit?

  • 0
  • 1
  • Question
  • Updated 11 months ago
  • Answered
I have successfully implemented the Image Onload Technique to work while in Grid Edit following the basic introductory instructions available in this forum (it shows me an alert that says "You are on the Grid Edit Page"), and I have also successfully enabled it to make colored columns in various reports while in normal table report view mode, but I can't seem to get colored columns while in Grid Edit.  Does anyone know how to do this?      
Photo of Robin CC

Robin CC

  • 240 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 30,434 Points 20k badge 2x thumb
Simple. Find a suitable selector for the table and select the nth-child td's:

$("table#gridTable_2000 tr td:nth-child(3)").css("backgroundColor", "red");

FWIW, I almost never use IOL with grid edit.
Photo of Kate Theriault

Kate Theriault

  • 362 Points 250 badge 2x thumb
Amazing, thanks for this Dan! 

I've been searching around on the forums and I can't find how to apply this to a form with multiple tables. 

I have a form with 3 grid edit reports with different views from Table A. If I use the above script, it colors the third column for only the first table. Is there a way to control the column headers of the other 2 grid edit reports?