0 Replies Latest reply on Sep 6, 2006 10:43 AM by GeorgeWS

    filtering a grid

    GeorgeWS Level 1
      I have this part and it works great! There is a text box that filters a grid using the PDES5W column of the grid. I want to be able to change the column; so I can choose what column to filter on. I cant seem to get the syntax right. Can anyone help? Thankx

      public function processFilter(item:Object):Boolean
      var result:Boolean=false;
      var pattern:RegExp= new RegExp("^"+txtFilter.text,"i");
      if (!item.PDES5W.length
      || item.PDES5W.match(pattern))

      return result;