Forum Discussion

RobinCC's avatar
RobinCC
Qrew Cadet
8 years ago

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

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