Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by damo on Aug 14, 2008 04:32
open dhtmlx forum
math + addRow

I have the grid:
g2.setColTypes("edn,edn,ron[=c0*c1]");

I add a row with:
g2.addRow(     new_id
,     10
+ ',' +    20
+ ',' +    ''
);
But column 3 show "NaN". After adding the row, if I edit column 1 or 2, the value in column 3 uptades to the rigth value

I tried also with:
g2.addRow(     new_id
,     10
+ ',' +    20
+ ',' +    200
);
Column 3 shows "200" but when editing col 1 or 2 it doesn´t update the value.

I am using dhtmlxTreeGrid_pro_v16_80512

Thanks!
Answer posted by Support on Aug 14, 2008 05:05
Sample with the same code sent by email - all works correctly. 
If problem still occurs for you - please provide any kind of sample where issue can be reconstructed.