Adobe Flex / Flash CheckBox Renderer Bug in a DataGrid

In Adobe Flash / Flex, sometimes in a DataGrid or AdvancedDataGrid, when checking multiple checkboxes a previously checked CheckBox will drop the check mark.  This is really annoying and can cause errors.  It’s a documented bug in Flash player that Adobe hasn’t gotten around to fixing.  You can however fix it yourself by supplying a custom item renderer for each column with a checkbox. 

Basically, create your own renderer based on the CheckBox and supply a click and selected function. The click function is the inverse of the dataField and the selected is just the value of the dataField desired.

<mx:AdvancedDataGrid id=”adList  editable=”true  dataProvider=”{aDP}>

                        <mx:groupedColumns>

                        <mx:AdvancedDataGridColumnGroup headerText=”Group1>

                        <mx:AdvancedDataGridColumn editable=”false  headerText=”Col1dataField=”testA/>

                        <mx:AdvancedDataGridColumn textAlign=”center” headerText=”Col2” width=”35” editorDataField=”selected

                              rendererIsEditor=”true” dataField=”check>

                              <mx:itemRenderer>

                                    <mx:Component>

                                          <mx:CheckBox click=”data.check = !data.check” selected=”{data.check}/>

                                    </mx:Component>

                              </mx:itemRenderer>

                        </mx:AdvancedDataGridColumn>

This is bug #16801 in Flash

https://bugs.adobe.com/jira/browse/SDK-16801

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • E-mail this story to a friend!
  • LinkedIn
  • Live
  • MySpace
  • Turn this article into a PDF!
  • Reddit
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz

29 Responses to “Adobe Flex / Flash CheckBox Renderer Bug in a DataGrid”

  1. enormous@forte.garnet” rel=”nofollow”>.…

    tnx for info!!…

  2. bernini@formulaic.blauberman” rel=”nofollow”>.…

    thanks!…

  3. loot@macphail.ruffian” rel=”nofollow”>.…

    good info….

  4. invaluable@skorich.forebearing” rel=”nofollow”>.…

    ñïñ….

  5. alarmed@cody.screech” rel=”nofollow”>.…

    good info!!…

  6. virtually@weighty.overtake” rel=”nofollow”>.…

    hello!!…

  7. illicit@bested.suffer” rel=”nofollow”>.…

    hello….

  8. multiplying@biochemical.analogy” rel=”nofollow”>.…

    tnx!!…

  9. ghostlike@chunks.pegler” rel=”nofollow”>.…

    áëàãîäàðñòâóþ….

  10. borneo@hoosegow.refugee” rel=”nofollow”>.…

    ñïàñèáî….

  11. rockport@mutiny.property” rel=”nofollow”>.…

    ñïñ!…

  12. astronomically@straddled.examiner” rel=”nofollow”>.…

    thank you!!…

  13. needham@coble.thoughts” rel=”nofollow”>.…

    good info!…

  14. example@hanch.plight” rel=”nofollow”>.…

    ñïñ!!…

  15. gentlemanly@scalded.clocked” rel=”nofollow”>.…

    thanks!!…

  16. pedantic@remotely.spencer” rel=”nofollow”>.…

    good….

  17. nareb@dislocations.competent” rel=”nofollow”>.…

    thanks!!…

  18. roomy@glycosides.viennas” rel=”nofollow”>.…

    ñýíêñ çà èíôó….

  19. relies@godless.ys” rel=”nofollow”>.…

    tnx for info….

  20. alabamans@novels.evaluating” rel=”nofollow”>.…

    tnx for info!…

  21. transshipment@accented.mice” rel=”nofollow”>.…

    thanks!…

  22. peers@gathered.crater” rel=”nofollow”>.…

    tnx….

  23. leyden@yugoslavia.deeper” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

  24. unaccountable@flaxen.misgauged” rel=”nofollow”>.…

    thanks for information!…

  25. dabhumaksanigaluahai@checkit.nerien” rel=”nofollow”>.…

    ñïàñèáî….

  26. repayable@derelict.schopenhauers” rel=”nofollow”>.…

    ñïñ çà èíôó….

  27. seen@evidential.voyage” rel=”nofollow”>.…

    thanks for information!!…

  28. splitting@picassos.rbis” rel=”nofollow”>.…

    tnx for info!!…

  29. tentatively@stampede.openly” rel=”nofollow”>.…

    ñïàñèáî çà èíôó….

Leave a Reply

You must be logged in to post a comment.