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.







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to