rice-framework/krad-web/src/main/webapp/krad/scripts/krad.utility.js
/**
 * Hides any cells and headers in a table if they have no content to prevent empty rows from displaying in grid layout
 * when all cells are render=false or hidden by disclosure
 */
Hides any cells and headers in a table if they have no content to prevent empty rows from displaying in grid layout
when all cells are render=false or hidden by disclosure
Hides any cells and headers in a table if they have no content to prevent empty rows from displaying in grid layout when all cells are render = false or hidden by disclosure
function hideEmptyCells() {
    jQuery('td.' + kradVariables.GRID_LAYOUT_CELL_CLASS).each(function () {
        var isCompareFieldAction = jQuery(this).next("td." + kradVariables.COLLECTION_ACTION_CLASS).children().hasClass(kradVariables.ACTION_FIELD_CLASS);
        var cellEmpty = (jQuery(this).children().is(".uif-placeholder") || jQuery(this).is(":empty")) && !isCompareFieldAction;
        if (cellEmpty) {
            var hd = jQuery(this).siblings("th");
            var headerEmpty = jQuery(hd).children().is(":hidden") || jQuery(hd).is(":empty");
            if (headerEmpty) {
                hd.hide();
            }
            jQuery(this).hide();
        }
    });
}
function hideEmptyCells ( ) { jQuery ( 'td.' + kradVariables . GRID_LAYOUT_CELL_CLASS ) . each ( function ( ) { var isCompareFieldAction = jQuery ( this ) . next ( "td." + kradVariables . COLLECTION_ACTION_CLASS ) . children ( ) . hasClass ( kradVariables . ACTION_FIELD_CLASS ) ; var cellEmpty = ( jQuery ( this ) . children ( ) . is ( ".uif-placeholder" ) || jQuery ( this ) . is ( ":empty" ) ) && ! isCompareFieldAction ; if ( cellEmpty ) { var hd = jQuery ( this ) . siblings ( "th" ) ; var headerEmpty = jQuery ( hd ) . children ( ) . is ( ":hidden" ) || jQuery ( hd ) . is ( ":empty" ) ; if ( headerEmpty ) { hd . hide ( ) ; } jQuery ( this ) . hide ( ) ; } } ) ; }
Hides any cells and headers in a table if they have no content to prevent empty rows from displaying in grid layout
 when all cells are render=false or hidden by disclosure
Hides any cells and headers in a table if they have no content to prevent empty rows from displaying in grid layout when all cells are render = false or hidden by disclosure
// get all the td elements
 // check if this cell is part of a comparable action row
 // check if the children is hidden (progressive) or if there is no content(render=false)
 // hide the header only if the cell and the header is empty
 // hide the cell
