...

View Full Version : Datagrid and checkbox



nornam_rems
09-30-2011, 08:18 AM
hi,

I am very new to Flex. I have a datagrid with checkbox. Once I select a checkbox am unable to uncheck it but when i select any other checkbox that makes the first checkbox unchecked

Is there a way i can uncheck the checkbox.

My code looks like this

CheckBoxRenderer.mxml
<s:CheckBox id="selectedCheckBox" selected.selected="true" selected.normal="false" mouseEnabled="false" mouseChildren="false" />


name.mxml
<mx:DataGridColumn width="5" itemRenderer="com.datagrid.CheckBoxRenderer"/>


Thanks in advance

Inigoesdr
10-01-2011, 12:27 AM
Don't bind selected to the states like that. The focus is taken away when you click on another itemrenderer so the state changes and the box is unchecked.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum