Discussions

Expand all | Collapse all

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

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

    Posted 10-26-2017 22:51
    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?      


  • 2.  RE: Image Onload Technique - Can I color columns in Grid Edit?

    Posted 11-03-2017 05:01
    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.


  • 3.  RE: Image Onload Technique - Can I color columns in Grid Edit?

    Posted 10-01-2018 00:39
    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?