:: Forum >>

empty cell formating

Another wierd thing that was happening to me...

I have a number format on an empty cell and instead of an error like i would expected(and recieved form the date format) it just keeps going. It places 0's in the field that i would like to be empty.

this is what i am trying

var number = new AW.Formats.Number;
number.setTextFormat("#,###.");
number.setErrorText("");
table.setCellFormat(number, msk);


I also tried setErrorvalue() but to the same effect. It doesnt seem to even hit as an error on empty cells.
Ryan G.
Friday, May 23, 2008
See this:
http://www.activewidgets.com/javascript.forum.12384.5/formats-applied-to-empty-cells.html
Evko
Sunday, May 25, 2008
so that was wierd, it seems to work for my numbers but not fo rmy money... before it would just give a stack overflow error.
here is the code


var money = new AW.Formats.Number;
money.setTextFormat("#,###.##");
money.dataToText1 = money.dataToText;
            money.dataToText = function(data){
                return data ? this.dataToText1(data) : "";
            }
table.setColumnWidth(80, msk);
            table.setCellFormat(money, msk);
Ryan G.
Tuesday, May 27, 2008
nevermind, nothing is working, as i change the data in the table(reload the cells with new information) i get a stack overflow error at this line

return data ? this.dataToText1(data) : "";
Ryan G.
Tuesday, May 27, 2008

This topic is archived.


Back to support forum

Forum search