:: Forum >>

adding a column

I am using the CSV source and I have code that allows me to insert columns. However, when the insert is done, the value in each cell is 'undefined'. Is there an easy way to make it default to a blank cell instead? Should I just change the base code to display blank instead of 'undefined'? Or is there a better way (other than setting cellText for each cell to blank)?
Joel
Thursday, February 1, 2007
You can modify getData method in AW.CSV.Table.

Replace

return this._data[r][c];

with

return this._data[r][c] || "";


Alex (ActiveWidgets)
Thursday, February 1, 2007
Thanks Alex - that did the trick!
Joel
Thursday, February 1, 2007

This topic is archived.


Back to support forum

Forum search