3 Replies Latest reply on Dec 29, 2010 10:29 PM by BhaskerChari

    Dropdownlist filterFuction

    Zolotoj Level 3

      Is there any event that gets fired when a dropdownlist is filtered by its filterFuncion?

       

      Thanks

        • 1. Re: Dropdownlist filterFuction
          BhaskerChari Level 4

          Try CollectionEvent.CollectionChange on ArrayCollection for your DropDown DataPrvoider .

           

          Thanks,

          Bhasker

          • 2. Re: Dropdownlist filterFuction
            Zolotoj Level 3

            Still not everything is working.

            Here is a code for the listener:

            subdivisions.dataProvider.addEventListener("collectionChange", eventHandler);

             

            but when I refersh the dataProvider:

            ArrayCollection(subdivisions.dataProvider).refresh();

             

            this event is not firing.

            • 3. Re: Dropdownlist filterFuction
              BhaskerChari Level 4

              Hi Zolotoj,

               

              What is the subdivisions here in your code.Whether it is a List/DataGrid or a Custom component..??

               

              Instead of getting the dataProvider from the subdivisions try to register the eventListner directly on the ArrayCollection itself.

               

              private var dpCollection:ArrayCollection; // This is your dataprovider for your subdivisions

               

              //register eventListener on ArrayCollection

              dpCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE, eventHandler);

               

               

              dpCollection.refresh();

               

               

              Thanks,

              Bhasker