2 Replies Latest reply on Sep 2, 2009 2:50 PM by babo_ya

    filtering

    GeorgeWS Level 1

      I have a datagrid that gets filled with a RO ArrayCollectio. The grid has 12 months of data I use a slider to show month to month data. This works, except when the data is loaded its always 12 months then I move the slider and is just that month; how can I PRE-Filter it to show the current month data?

        • 1. Re: filtering
          Gregory Lafrance Level 6

          If this post answered your question or helped, please mark it as such.

           

          You would be better off with XML data so you can easily use e4x syntax.

           

          That said, you might be able to get the ArrayCollection data converted to XML and then use e4x.

          • 2. Re: filtering
            babo_ya Level 3

            I think ArrayCollection from RO should be faster than converting it to XML and find the current month and probably convert it back to ArrayCollection.

             

            I would somehow create a init function that sets the slider using the today's date.

            Do you have a result handler? can you not set the slider there?

             

            Please post a sample code.

             

            BaBo,