0 Replies Latest reply on Jun 2, 2009 11:15 PM by obourdon38

    Combobox with chained choices and disabled items

    obourdon38

      I had to implement a set of 3 linked/related/chained dropdown menu choices where some items in each list could be disabled.

      Even though this might seem a very legitimate request and quite simple to implement I did not find this straightforward and

      went on with one of my first "developement"

       

      For the chaining of choices I used

       

      http://blog.flexexamples.com/2007/08/04/creating-two-related-comboboxes/

       

      which is a great place to find all kinds of flex related infos

       

       

      For the disabling of Combobox items I went through

       

      http://www.stoimen.com/blog/2009/03/05/flex-3-combobox-disabled-options/

       

      which references

       

      http://wmcai.blog.163.com/blog/static/4802420088945053961/

       

      (note for NoScript users you must have 163.com and 126.com at least temporarily allowed to be able to properly see this page)

       

      and this code works very well  even though I needed the code for being able to properly handle keyboard events in the dropdown list

       

      You can now grab the complete code of this complete and self working modified example at

       

      http://olivierbourdon.homedns.org/OpenSource/combos.zip

       

      Thanks again to all the code "providers" I mentioned above and feel free to (re)use the code, modify it, make comments or ask questions