3.2.0

How to get the cell Data

hi iwould like to know if someone knows how to get a cell data
August 11,
obj.getCellText(column, row) is the method I used.
August 11,
ok thx but donsente work for me here is my code some1 can explaine me what im doing wrong? plz

var obj = new AW.UI.Grid;

obj.setSize(600, 250);
obj.setCellText(function(i, j){return j });
obj.setHeaderText("Rif o Cedula",0);
obj.setHeaderText("Razon Social",1);
obj.setHeaderText("Nombre Contacto",2);
obj.setColumnCount(3);
obj.setRowCount(15);
obj.setCellEditable(false);
document.write(obj);

obj.onRowAdded = function(row){
window.status = "Row added: " + row;
this.setCellText("mierda", 0, row);
this.setCellText("de", 1, row);
this.setCellText("perro", 2, row);
}

obj.onRowDeleting = function(row){
return !confirm("Delete row " + row + "?");
}

obj.onRowDeleted = function(row){
window.status = "Row deleted: " + row;
}


// row index
var serial = 1000;

function add(serial){
obj.addRow(serial);
}

function get(){
var x = obj.getCurrentRow();
var y = obj.getCurrentColum();
var value = getCellText(y,x);
//var value;
return !confirm(value);
//
//alert(obj.getData(x,y));
add(x);
}

function del(){
var i = obj.getCurrentRow();
obj.deleteRow(i);
}
August 11,
you have written var value = getCellText(y, x) instead of
var value = obj.getCellText(y,x);
August 14,

This topic is archived.

See also:


Back to support forum