On Tuesday 13 Apr 2010, Tom Chiverton wrote:
It's meant to Just Work.
As it is, I think it's down to the labelFunction.
I put a test case up on http://bugs.adobe.com/jira/browse/SDK-26209
--
Helping to vitalistically lead sexy prospective eligible attention-grabbing
convergence as part of
This simple DataGrid doesn't appear to work right.
Click one of the rows, and the value in the NumericStepper is zero, when I
would expect it to pick up the value from the data provider.
Code (ignore all the script and outputs, just compile and run):
?xml version=1.0 encoding=utf-8?
You need value binding to the data property
mx:NumericStepper stepSize=0.01 minimum=0
maximum=
dataChange=outerDocument.debug(event)
value={data}
or... set the itemEditor of the datagrid to be a class factory which generates
NumericSteppers with the factory’s properties set up.
On Tuesday 13 Apr 2010, Gregor Kiddie wrote:
value={data}
This causes a stack overflow inside the Binding/Watch infrastructure.
When the Stepper is used directly, rather than being wrapped in a
mx:Component,
If I take out the mx:Component lines, it fails to compile because
NumericStepper
This causes a stack overflow inside the Binding/Watch infrastructure.
Really? Didn't expect that one. I never use inline renderers if I can
help it! I suspect it'll need to be value={parent.data} or maybe
owner.data ... again, I hate inline renderers.
If I take out the mx:Component lines, it
Playing with this... it's the formatter that's screwing things up. The
NumericStepper uses the label for the cell and tries to parse it as a
float. The dollar sign immediately makes it terminate with a NaN which
the NumericStepper makes a 0 (It really should report it a NaN).
Gk.
On Tuesday 13 Apr 2010, Gregor Kiddie wrote:
Playing with this... it's the formatter that's screwing things up. The
NumericStepper uses the label for the cell
I think so too.
Why isn't it going to the underlying dataProvider element ?!? Can you not mix
labelFunction and itemEditor ? In which
On Tuesday 13 Apr 2010, Gregor Kiddie wrote:
Really? Didn't expect that one. I never use inline renderers if I can
help it! I suspect it'll need to be value={parent.data} or maybe
owner.data ... again, I hate inline renderers.
It's meant to Just Work.
As it is, I think it's down to the
8 matches
Mail list logo