public/javascripts/yui/datatable/datatable.js
function(elTr, oRecord) {
    var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true;
    if(ok) {
        // Hide the row to prevent constant reflows
        elTr.style.display = 'none';
        
        // Update TD elements with new data
        var allTds = elTr.childNodes,
            elTd;
        for(var i=0,len=allTds.length; i<len; ++i) {
            elTd = allTds[i];
            
            // Set the cell content
            this.formatCell(allTds[i].firstChild, oRecord, this._oColumnSet.keys[i]);
        }
        
        // Redisplay the row for reflow
        elTr.style.display = '';
    }
    
    elTr.id = oRecord.getId(); // Needed for Record association and tracking of FIRST/LAST
    return elTr;
}
function(elTr, oRecord) {
    var ok = this.get("formatRow") ? this.get("formatRow").call(this, elTr, oRecord) : true;
    if(ok) {
        // Hide the row to prevent constant reflows
        elTr.style.display = 'none';
        
        // Update TD elements with new data
        var allTds = elTr.childNodes,
            elTd;
        for(var i=0,len=allTds.length; i<len; ++i) {
            elTd = allTds[i];
            
            // Set the cell content
            this.formatCell(allTds[i].firstChild, oRecord, this._oColumnSet.keys[i]);
        }
        
        // Redisplay the row for reflow
        elTr.style.display = '';
    }
    
    elTr.id = oRecord.getId(); // Needed for Record association and tracking of FIRST/LAST
    return elTr;
}
function ( elTr , oRecord ) { var ok = this . get ( "formatRow" ) ? this . get ( "formatRow" ) . call ( this , elTr , oRecord ) : true ; if ( ok ) { // Hide the row to prevent constant reflows elTr . style . display = 'none' ; // Update TD elements with new data var allTds = elTr . childNodes , elTd ; for ( var i = 0 , len = allTds . length ; i < len ; ++ i ) { elTd = allTds [ i ] ; // Set the cell content this . formatCell ( allTds [ i ] . firstChild , oRecord , this . _oColumnSet . keys [ i ] ) ; } // Redisplay the row for reflow elTr . style . display = '' ; } elTr . id = oRecord . getId ( ) ; // Needed for Record association and tracking of FIRST/LAST return elTr ; }
Formats the contents of the given TR's TD elements with data from the given
Record. Only innerHTML should change, nothing structural.

@method _updateTrEl
@param elTr {HTMLElement} The TR element to update.
@param oRecord {YAHOO.widget.Record} The associated Record instance.
@return {HTMLElement} DOM reference to the new TR element.
@private
Formats the contents of the given TR s TD elements with data from the given Record . Only innerHTML should change nothing structural .