I am usandoi WebDatagrid of NetAdvantage 2010.3How to Set a Cell Value .... When I edit a cell value I want to update the value of another cell of the grid.I'm doing it this way but it does not workFunction WHDG_CellValueChanged function (grdDetalle, evntArgs){ evntArgs._cell._row._index idxRow = var; var row = grdDetalle.get_rows (). get_row (idxRow); var Number = row.get_cell (2). get_value (); row.get_cell UnitPrice = var (4). get_value (); row.get_cell (5). get_value = Quantity * UnitPrice;
Hi HalconDivino,
If you want to update a cell value, you need to call cell.set_value(value, text); If text is undefined, then we'll convert value to text to show.
regards,David Young
Thanks for answer
set_value I have to use to turn on another property of the grid ???
set_value can be used in any event of client ???
I am using this code but does not work .. sends an error
function WHDG_CellValueChanged(grdDetalle, evntArgs)
{
var rowX = evntArgs._cell._row;
var cell = rowX.get_cell(5);
cell.set_value(
"12345"); // error ==>>> Microsoft JScript runtime error: Out of stack space