This seems like a bug, you should file it
(with a code example) at http://www.macromedia.com/go/wish.
I think like you are hinting at you could probably use the cellEdit event to “undo
the damage.” You should be able to get the new value by simply reading
the value specified for the item at
myDG.dataProvider.getItemAt(event.itemIndex).
Matt
In my editable datagrid, if I tab to a new cell (blank cell) and un-tab
from the cell without entering any new data, it
automatically inserts a
"space character" ...
My datagrid is populated with data of type:Number.
The issue is that when I try to save the edited
data, the service throws
an error since now the datatype is a String and
not a Number. I used the
Object Inspector to see the datatype and I can
confirm that the datatype
of the returned value is indeed a String.
1. Why does a data that is
type-casted change type automatically?
2. How can I prevent the space
character from being added automatically
On a parallel note, what is the best way to find the
"newValue" of a
cell on cellEdit. I did see a "oldValue"
in the docs ...
Regards
Sree
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|