All,
DataGrid's are cool, but yeash I've run into a lot of problems with
them. I've put
together two *real simple* online demonstrations that illustrate the
behavior I'm
seeing with a grid. I'd love for someone more experienced to check out
these
two examples and offer any insight or solution.
http://www.trajiklyhip.com/flex/gridexample/DataGridExample1.html
This is a simple grid that uses a custom Checkbox item renderer written
in AS3.
Clicking the submit button will display whether or not each Checkbox is
selected.
Make some changes to the boxes, de-selecting a few or an entire column
and
then click the submit button to see the selected value. The Alert box
usually
displays the right info the first time through, but after you've gone
through a few
rounds of selecting and de-selecting some of the boxes it will not show
you the
correct true/false value of each box.
http://www.trajiklyhip.com/flex/gridexample/DataGridExample2.html
This is another simple grid that is the same as the previous one only
with more
rows of data to make the DataGrid scroll. De-select the first "Group
Owner"
Checkbox (row 1 with the ID = 12) and then click use the grid scroll
bar to scroll
up and down. As you scroll, other Checkboxes are selected and
deselected at
random.
Incidentally, if you right-click the DataGridExample1 movie you can
view the source
to see what I'm doing.
| Aaron West
| aaron AT trajiklyhip DOT com
| http://www.trajiklyhip.com/blog/
| Certified Advanced Adobe ColdFusion MX 7 Developer
| Certified Macromedia FlashMX Developer
| Adobe Community Expert