Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •