Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by praveen on Dec 08, 2008 04:52
open dhtmlx forum
Replace cell value

Hi,
How can i Replace cell value progrmaticaly ,can you please give some idea????


Thanks
Praveen
Answer posted by Support on Dec 08, 2008 05:53
You can get value as grid.cells(i,j).setValue() and set new as grid.cells(i,j).setValue();
If you need to replace values on the fly , the next events may be usefull
onRowCreated - called when new row created in grid
onCellChanged - called when value of cell changed by user or by API
onEditCell - called when cell was edited by user

In case of onEditCell event - it provides both old and new value of cell, returning any string object from event handler will cause changing of existing value to returned one.