Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-30-2011, 07:18 AM   PM User | #1
nornam_rems
New to the CF scene

 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nornam_rems is an unknown quantity at this point
Datagrid and checkbox

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
<mxataGridColumn width="5" itemRenderer="com.datagrid.CheckBoxRenderer"/>


Thanks in advance
nornam_rems is offline   Reply With Quote
Old 09-30-2011, 11:27 PM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
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.
Inigoesdr is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:31 AM.


Advertisement
Log in to turn off these ads.