20110630

How to update a row in YUI2 DataTable

Here's how to update the data in a YUI2 ScrollingDataTable:

this.subscribe('cellClickEvent',function(e, obj) {
    var target                  = e.target,
        column                  = this.getColumn(target),
        record                  = this.getRecord(target),
        data                    = record.getData(),
        recordIndex             = this.getRecordIndex(record);

//manipulate data here
      this.updateRow( recordIndex, data);   

No comments: