This does seem odd. Have you tried
not using databinding and instead updating the datagrids manually in your
change handlers? I also suppose there could be some effect that plays
during selection and we cancel other pending operations but this seems a little
far-fetched. I’d try removing binding from the equation and if you’re
still having problems see if you can create a test case to post here.
Matt
Hmmm I seem to have encountered an unusual
situation. I did some
testing to see if I could resolve it but didn't
make much progress, so
I'll ping the list to see if anyone has an ideas.
The App
---------
- Very simple app.
- Consists of 3 datagrids. Select an item in
datagrid 1, and a list of
related items shows in data grid 2. Select an item
in data grid 2, and a
list of related items shows in data grid 3.
- There is a combo box that filters on data grid
1. If you change it,
the list in datagrid 1 refreshes with a new list,
and DG2 & 3 are cleared.
- Content can be added to all 3 of these grids
with add buttons that
take you to a form, and refresh appropately.
Generally works with no problems.
The Problem
-------------
For one extremely particular case where when
adding a new item to each
of the grids (works fine), the problem is related
to whether you've
selected a row on DG3 (it has no change function
associated with it) and
then try changing that combo box, which should
update DG1... it doesn't
happen. However the array that DG1 is bound to is
updated, but it's not
refreshing the list.
This particular sequence of actions seems to
prevent Flash from
detecting that the array that DG1 is bound to has
changed and causing
DG1 to redraw. But works fine in any other
combination of usage (eg in
DG3 if you don't select a row, works fine).
The Question
--------------
Is there some circumstance, or attribute that if
not cleared prevents a
datagrid from refreshing its list when the
dataProvider as changed? I
tried invalidate(), dg1.selectedItem=NULL, etc...
amongst other things...
Thx.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links