0 Replies Latest reply on Nov 7, 2007 1:25 PM by AuroraCF

    How can I filter as you type on numeric datagridcolumn?

    AuroraCF
      Hello,

      I use this script to filter, it works great with string field, but when change it to numeric field (ie. contact_number) I got this error (property length not found on Number and there is no default value. Does any one have any idea why and how I can correct this?

      Thanks in advance for any help.

      Phong.
      public function processFilter(item:Object):Boolean
      {
      var result:Boolean=false;
      if (!item.FirstName.length
      || item.FirstName.toUpperCase().indexOf(search.text.toUpperCase()) >= 0)
      result=true;
      return result;
      }