public/javascripts/yui/datatable/datatable.js
function(oRecord) {
        if(oRecord) {
            for(var i=this._records.length-1; i>-1; i--) {
                if(this._records[i] && oRecord.getId() === this._records[i].getId()) {
                    return i;
                }
            }
        }
        return null;

    }
function(oRecord) {
        if(oRecord) {
            for(var i=this._records.length-1; i>-1; i--) {
                if(this._records[i] && oRecord.getId() === this._records[i].getId()) {
                    return i;
                }
            }
        }
        return null;

    }
function ( oRecord ) { if ( oRecord ) { for ( var i = this . _records . length - 1 ; i > - 1 ; i -- ) { if ( this . _records [ i ] && oRecord . getId ( ) === this . _records [ i ] . getId ( ) ) { return i ; } } } return null ; }
Returns current position index for the given Record.

@method getRecordIndex
@param oRecord {YAHOO.widget.Record} Record instance.
@return {Number} Record's RecordSet position index.
Returns current position index for the given Record .