flex - DataGrid edits label instead of data -


i have editable datagrid in flex, data full of numbers. columns have no special itemrenderer, labelfunction, returns number as-is if positive, puts in parentheses if negative, so

27.3 => "27.3" -27.3 => "(27.3)" 

now, these cells editable. when try edit cell positive number, nothing wrong. if try edit negative number, starts editing (27.3) instead of editing -27.3. because of this, when edit done, labelfunction evaluated new value in parentheses(i.e., labelfunction called "(30.5)"), , converting number results in nan.

so, want know if can make datagrid edit data in dataprovider instead of label shows.

i hope clear condition. please ask if need clarification.

thank you.

is you're after?

example: modifying data passed or received item editor - livedocs.adobe.com

(you may still have scroll down once page loads... anchor doesn't seem working me.)


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -