List control selectedIndex returns NaN

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default List control selectedIndex returns NaN

    I've 3 dependent list controls that I need to populate with an external XML
    file. The first list box populates correctly, but when I try to get the
    selectedIndex of the 1st list control in order to populate the 2nd list
    control, it returns NaN instead of the appropriate Index. Any ideas why it
    might be doing that?

    Anu Shah Guest

  2. Similar Questions and Discussions

    1. Displaying icons in List control
      Hi everybody? I am trying to display icons in List control: <mx:List id="wEuropeList" width="100%" height="100%" color="blue"...
    2. List Control
      Hi, i am facing problem in deleting multi selected items, it is not deleting the items one i am selecting but deleting the items randomly. var...
    3. list.selectedIndex not take effect?
      main.mxml: <?xml version="1.0" encoding="utf-8" ?> <mx:Application marginTop="20" marginBottom="20"...
    4. Need Help Passing SelectedIndex (Int32) to IE Tabstrip Control
      I have a user control built using the Microsoft IE Control. I declared a public variable as int32 (DefaultTab) in the user control. I can't...
    5. Checkbox List Control
      Is there any way to reset the Checkbox List control in one line syntax rather than looping through it? Thanks Nitc3
  3. #2

    Default Re: List control selectedIndex returns NaN

    has the selectedIndex been set?


    "Anu Shah" <webforumsuser@macromedia.com> wrote in message
    news:d5un3v$5rs$1@forums.macromedia.com...
    > I've 3 dependent list controls that I need to populate with an external
    > XML
    > file. The first list box populates correctly, but when I try to get the
    > selectedIndex of the 1st list control in order to populate the 2nd list
    > control, it returns NaN instead of the appropriate Index. Any ideas why
    > it
    > might be doing that?
    >

    Ken D. Nelson Guest

  4. #3

    Default Re: List control selectedIndex returns NaN

    Yes, I set the index to 0 when the list gets created.
    Anu Shah Guest

  5. #4

    Default Re: List control selectedIndex returns NaN

    Extract the necessary code into a sample app and post it, we'll take a look. Use the "Attach Code" window. I won't work with unformatted samples.
    Tracy
    ntsiii Guest

Posting Permissions

  • You may not post new threads
  • You may 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