I'm not with the Flex team, but I do know the beavior you're seeing
can be caused by failing to properly matching the checkbox state and
cellrenderer's item data.
Here's what I use. ("check" is the checkbox control created in the
renderer's createChildren() method; "selected" is the property of
the item data I want the checkbox to reflect. You may be able to
use item[getDataLabel()] in place of a property name.)
function setValue(str:String, item:Object, state:String): Void {
if (item != undefined) {
check.selected = item.selected;
}
}
// Click handler was set up in createChildren:
// check.addEventListener("click", this);
function click(event) {
listOwner.dataProvider[getCellIndex().itemIndex].selected =
check.selected;
}
--- In [email protected], "Matt Voerman" <[EMAIL PROTECTED]>
wrote:
>
> Hi All,
> Just wondered if any of the Flex team could let me know if this is
> known bug/issue.
>
> I'm currently using Flex 1.5 and displaying a series of checkboxes
> within a cellRenderer (located within a DataGrid).
>
> When the user selects a checkbox within this cell (for example at
the
> top) and then scrolls down the cell. Other checkboxes (located
within
> the cell) automatically become checked (without any user
interaction).
>
> These 'freshly selected' checkboxes in-turn cannot be deselected
(ie:
> the stay continually selected).
>
> I did see this post/thread
> http://www.mail-
archive.com/[email protected]/msg21796.html
>
> which mentions that this may be a known issue and recommends the
use
> of the isCellEditor=true and editorProperty=selected flags (which
> unfortunately don't seem to work).
>
> Any suggestions would be helpful.
>
> Thanks in advance.
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

