Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by purushottam on Dec 05, 2008 04:31
open dhtmlx forum
grid

have a grid which have 3 column and infinite  rows

so i want when the row is created the  IInd Col value is add in the first and show in the IIIrd

and in the IInd row Ist Col have the same value as Ist Row IIIrd col and  so on in the next row also



like this

Ist Col ,        IInd Col,        IIIrd Col

1/1/2000      2              1/1/2000

1/1/2000     3                1/1/2000

1/1/2000     0                1/1/2000


when on row created i want to show this as

1/1/2000    2              1/3/2000

1/3/2000    3              1/6/2000

1/6/2000   0             1/6/200

 



thank you

 
http://dhtmlx.com/docs/products/kb/imgs/_icon_for_answers.gif" border=0>
Answers
Answer posted by Support on Dec 05, 2008 05:19
>>so i want when the row is created the IInd Col value is add in the first and show in the IIIrd
mygrid.attachEvent("onRowCreated",function(id){
     mygrid.cells(id,2).setValue(mygrid.cells(id,0).getValue()+mygrid.cells(id,1).getValue());
});