public/javascripts/yui/datatable/datatable.js
function(cell) {
    var elCell = this.getTdEl(cell);

    if(elCell) {
        var oRecord = this.getRecord(elCell);
        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();

        if(oRecord && sColumnKey) {
            // Get Record ID
            var tracker = this._aSelections || [];
            var id = oRecord.getId();

            // Is it selected?
            for(var j=tracker.length-1; j>-1; j--) {
                if((tracker[j].recordId === id) && (tracker[j].columnKey === sColumnKey)){
                    // Remove from tracker
                    tracker.splice(j,1);

                    // Update tracker
                    this._aSelections = tracker;

                    // Update the UI
                    Dom.removeClass(elCell, DT.CLASS_SELECTED);

                    this.fireEvent("cellUnselectEvent", {record:oRecord, column: this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
                    return;
                }
            }
        }
    }
}
function(cell) {
    var elCell = this.getTdEl(cell);

    if(elCell) {
        var oRecord = this.getRecord(elCell);
        var sColumnKey = this.getColumn(elCell.cellIndex).getKey();

        if(oRecord && sColumnKey) {
            // Get Record ID
            var tracker = this._aSelections || [];
            var id = oRecord.getId();

            // Is it selected?
            for(var j=tracker.length-1; j>-1; j--) {
                if((tracker[j].recordId === id) && (tracker[j].columnKey === sColumnKey)){
                    // Remove from tracker
                    tracker.splice(j,1);

                    // Update tracker
                    this._aSelections = tracker;

                    // Update the UI
                    Dom.removeClass(elCell, DT.CLASS_SELECTED);

                    this.fireEvent("cellUnselectEvent", {record:oRecord, column: this.getColumn(elCell.cellIndex), key:this.getColumn(elCell.cellIndex).getKey(), el:elCell});
                    return;
                }
            }
        }
    }
}
function ( cell ) { var elCell = this . getTdEl ( cell ) ; if ( elCell ) { var oRecord = this . getRecord ( elCell ) ; var sColumnKey = this . getColumn ( elCell . cellIndex ) . getKey ( ) ; if ( oRecord && sColumnKey ) { // Get Record ID var tracker = this . _aSelections || [ ] ; var id = oRecord . getId ( ) ; // Is it selected? for ( var j = tracker . length - 1 ; j > - 1 ; j -- ) { if ( ( tracker [ j ] . recordId === id ) && ( tracker [ j ] . columnKey === sColumnKey ) ) { // Remove from tracker tracker . splice ( j , 1 ) ; // Update tracker this . _aSelections = tracker ; // Update the UI Dom . removeClass ( elCell , DT . CLASS_SELECTED ) ; this . fireEvent ( "cellUnselectEvent" , { record : oRecord , column : this . getColumn ( elCell . cellIndex ) , key : this . getColumn ( elCell . cellIndex ) . getKey ( ) , el : elCell } ) ; return ; } } } } }
Sets given cell to the unselected state.

@method unselectCell
@param cell {HTMLElement | String} DOM element reference or ID string
to DataTable page element or RecordSet index.
Sets given cell to the unselected state .