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

  • 0
  • 1
  • Question
  • Updated 2 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

  • 120 Points 100 badge 2x thumb

Posted 1 year ago

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

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 27,954 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

  • 352 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?