public/javascripts/yui/datatable/datatable.js
function(sRequest, oResponse, oPayload) {
    if((this instanceof DT) && this._sId) {
        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
    
        // Pass data through abstract method for any transformations
        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
    
        // Data ok to append
        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {        
            // Append rows
            this.addRows(oResponse.results);
    
            // Update state
            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
        }
        // Error
        else if(ok && oResponse.error) {
            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
        }
    }
}
function(sRequest, oResponse, oPayload) {
    if((this instanceof DT) && this._sId) {
        this.fireEvent("dataReturnEvent", {request:sRequest,response:oResponse,payload:oPayload});
    
        // Pass data through abstract method for any transformations
        var ok = this.doBeforeLoadData(sRequest, oResponse, oPayload);
    
        // Data ok to append
        if(ok && oResponse && !oResponse.error && lang.isArray(oResponse.results)) {        
            // Append rows
            this.addRows(oResponse.results);
    
            // Update state
            this._handleDataReturnPayload(sRequest, oResponse, oPayload);
        }
        // Error
        else if(ok && oResponse.error) {
            this.showTableMessage(this.get("MSG_ERROR"), DT.CLASS_ERROR);
        }
    }
}
function ( sRequest , oResponse , oPayload ) { if ( ( this instanceof DT ) && this . _sId ) { this . fireEvent ( "dataReturnEvent" , { request : sRequest , response : oResponse , payload : oPayload } ) ; // Pass data through abstract method for any transformations var ok = this . doBeforeLoadData ( sRequest , oResponse , oPayload ) ; // Data ok to append if ( ok && oResponse && ! oResponse . error && lang . isArray ( oResponse . results ) ) { // Append rows this . addRows ( oResponse . results ) ; // Update state this . _handleDataReturnPayload ( sRequest , oResponse , oPayload ) ; } // Error else if ( ok && oResponse . error ) { this . showTableMessage ( this . get ( "MSG_ERROR" ) , DT . CLASS_ERROR ) ; } } }
Callback function receives data from DataSource and appends to an existing
DataTable new Records and, if applicable, creates or updates
corresponding TR elements.

@method onDataReturnAppendRows
@param sRequest {String} Original request.
@param oResponse {Object} Response object.
@param oPayload {MIXED} (optional) Additional argument(s)
Callback function receives data from DataSource and appends to an existing DataTable new Records and if applicable creates or updates corresponding TR elements .