2 Replies Latest reply on Oct 31, 2009 5:06 AM by 435.mahesh

    filter elements from row?

    435.mahesh Level 1

      Hi,
      I have an ArrayCollecton.It will contain one  field name is Address.
      Address contains these values:
        Address(came from database)
      ----------------
      Hyd,Chennai,Mumbai,Delhi----

      row1
      bangolore,vizag-------------row1

      Here my doubt is I want to filer Hyd,Chennai from row1.How to achieve
      this?
      i did not understood how write filterFunction.
      Final Result i Have to display in datagrid like as
      Address
      ----------
      Mumbai,Delhi
      bangolre,Vizag

      Plz help me?

      Regards
      D.Mahesh Babu
        • 1. Re: filter elements from row?
          paul.williams Level 4

          Filtering will remove items from your ArrayCollection, but not from properties of ArrayCollection items.

           

          One solutions would be to use a labelFunction on your DataGridColumn and remove any offending towns prior to display. Another way would be to process the collection as soon as you recieve it from the server to remove the values you don't want. An even better way would be to return the correct set of results from the server in the first place.

          • 2. Re: filter elements from row?
            435.mahesh Level 1

            Thaq williams.

            If u dont mine can u send me the code how to use LabelFunction and remove required data?

             

             

             

             

             

             

            Redrads

            D.Mahesh babu