I am using ComponentOne Flexgrid for MVC and I am trying to sum a column.
I have the main grid (masterFlex) that contains the data. I then create a second single row grid (flex) that acts as the footer by mapping to masterFlex.
In trying to sum a numeric column:
for (vari=0; i < masterFlex.rows.length; i++)){
sum += masterFlex.getCellData(i,0);
}
flex.setCellData(0,0,sum,false);
It is firing back NaN as the result. I did a typeof on the cells in the loop
sum = typeof(masterFlex.getCellData(i,0));
alert(sum);
Every result came back number, so why when I try and sum it do I get NaN?