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=”Col1” dataField=”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
Filed under: Technology | Tagged: Adobe, CheckBox, Flash, Flex
enormous@forte.garnet” rel=”nofollow”>.…
tnx for info!!…
bernini@formulaic.blauberman” rel=”nofollow”>.…
thanks!…
loot@macphail.ruffian” rel=”nofollow”>.…
good info….
invaluable@skorich.forebearing” rel=”nofollow”>.…
ñïñ….
alarmed@cody.screech” rel=”nofollow”>.…
good info!!…
virtually@weighty.overtake” rel=”nofollow”>.…
hello!!…
illicit@bested.suffer” rel=”nofollow”>.…
hello….
multiplying@biochemical.analogy” rel=”nofollow”>.…
tnx!!…
ghostlike@chunks.pegler” rel=”nofollow”>.…
áëàãîäàðñòâóþ….
borneo@hoosegow.refugee” rel=”nofollow”>.…
ñïàñèáî….
rockport@mutiny.property” rel=”nofollow”>.…
ñïñ!…
astronomically@straddled.examiner” rel=”nofollow”>.…
thank you!!…
needham@coble.thoughts” rel=”nofollow”>.…
good info!…
example@hanch.plight” rel=”nofollow”>.…
ñïñ!!…
gentlemanly@scalded.clocked” rel=”nofollow”>.…
thanks!!…
pedantic@remotely.spencer” rel=”nofollow”>.…
good….
nareb@dislocations.competent” rel=”nofollow”>.…
thanks!!…
roomy@glycosides.viennas” rel=”nofollow”>.…
ñýíêñ çà èíôó….
relies@godless.ys” rel=”nofollow”>.…
tnx for info….
alabamans@novels.evaluating” rel=”nofollow”>.…
tnx for info!…
transshipment@accented.mice” rel=”nofollow”>.…
thanks!…
peers@gathered.crater” rel=”nofollow”>.…
tnx….
leyden@yugoslavia.deeper” rel=”nofollow”>.…
ñïàñèáî çà èíôó….
unaccountable@flaxen.misgauged” rel=”nofollow”>.…
thanks for information!…
dabhumaksanigaluahai@checkit.nerien” rel=”nofollow”>.…
ñïàñèáî….
repayable@derelict.schopenhauers” rel=”nofollow”>.…
ñïñ çà èíôó….
seen@evidential.voyage” rel=”nofollow”>.…
thanks for information!!…
splitting@picassos.rbis” rel=”nofollow”>.…
tnx for info!!…
tentatively@stampede.openly” rel=”nofollow”>.…
ñïàñèáî çà èíôó….