Professional Web Applications Themes

Check/deselect the checkbox dynamically - Macromedia Flex General Discussion

Hi, there Is it possible to decide the Selected property of checkbox according to the value of a node in XML file? For instance, there are 2 values (1 & 0) in the <selected></selected> tag. When it reads 1, checkbox will be selected. Otherwise, it will be deselected. Could you please tell me how to do that? If not possible, how do I work it out? cheers Shengtao...

  1. #1

    Default Check/deselect the checkbox dynamically

    Hi, there
    Is it possible to decide the Selected property of checkbox according to the
    value of a node in XML file? For instance, there are 2 values (1 & 0) in the
    <selected></selected> tag. When it reads 1, checkbox will be selected.
    Otherwise, it will be deselected. Could you please tell me how to do that? If
    not possible, how do I work it out?
    cheers
    Shengtao

    personaex Guest

  2. #2

    Default Re: Check/deselect the checkbox dynamically

    If you have <mx:Checkbox id="check1" .. /> and you want to select it programmatically using 1 or 0, then do: check1.selected = value == 1;
    peterent Guest

  3. #3

    Default Re: Check/deselect the checkbox dynamically

    Hi, Peter
    Thanks a lot. It works.
    Cheers
    David
    personaex Guest

Similar Threads

  1. Deselect Tools
    By MLWHEELER in forum Adobe Photoshop Elements
    Replies: 9
    Last Post: September 14th, 12:53 PM
  2. How to dynamically check what kind of data type itis inside an Arraycollection?
    By Ansury in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 6th, 04:08 PM
  3. Check the Checkbox
    By Lenny@ford in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 12th, 02:31 PM
  4. SOS I am trying to call external swfs in the order that I check a checkbox?
    By benmaxwood@aol.com in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 3rd, 08:47 PM
  5. Deselect rows in a grid
    By Amit Kohli in forum ASP.NET Data Grid Control
    Replies: 1
    Last Post: July 9th, 05:09 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139