0 Replies Latest reply on Sep 20, 2007 10:46 AM by Newsgroup_User

    error Unknown Property: '-1'.

    Level 7
      Hi All,
      I'm adding a row in my datagrid and I'm getting this error
      Error: Unknown Property: '-1'.

      override flash_proxy function getProperty(name:*):*
      {
      if (name is QName)
      {
      name = name.localName;
      }
      //else name is String
      var index:int = -1;
      try
      {
      //if they passed in a number (5.5) it will be floored
      var n:Number = parseInt(String(name));
      if (!isNaN(n))
      {
      index = int(n);
      }
      }
      catch (e:Error) {} //localName was not a number
      if (index == -1)
      {
      throw new Error(StringUtil.substitute(resourceUnknownProperty,
      name)); // HERE IS THE ERROR
      }
      else
      {
      return getItemAt(index);
      }
      }

      Any ideas?
      Please help

      JFB