Use "UserData" in grid math calculation

Hi,
Can you please explain me how to use “UserData” in math calculation for the grid. The scenario is I have 3 columns, C1, C2 & C3. C3 is the total column. For C1 & C2 I have the “userdata” coming from XML. Here is the sample XML


10
20
12
6



In C3, I would like to get the C1userdata + C2userdata, in this case it will be 240 (1210 + 620=240). Please let me know how I can achieve this.

Thanks

In this situation you will have to implement your own custom math logic using the userdata API:
var userdata = grid.getUserData(“unique_rowid”,“someName1”);
grid.setUserData(“unique_rowid”,“someName1”,“new value”);

docs.dhtmlx.com/doku.php?id=dhtm … a#userdata