2 Replies Latest reply on Sep 12, 2006 11:06 AM by Diemos

    Filtered Collection

    Diemos
      Hi,

      I have a filterfunction that filters the data in my grid. I would like to be able to reference the filtered rows. Is there a way to do that ?

      Here's the filterfunction :

      private function processFilter(item:Object):Boolean {
      var result:Boolean=false;
      for(var i:int = 0; i < columns.length; i++) {
      if((String(item[String(columns .columnName)])) != 'null') {
      if(item[String(columns
      .columnName)].toString().toUpperCase().indexOf(txtFilter.text.toUpperCase()) >= 0) {
      result = true;
      }

      }
      }
      return result;
      }