Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-20313

SelectItem on AdvancedDataGrid use weird code

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Adobe Flex SDK 3.2 (Release)
    • Component/s: mx: DataGrid
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      In HierarchicalCollectionViewCursor, lines 400 to 426:

      public function findAny(values:Object):Boolean
      {
      seek(CursorBookmark.FIRST);

      var done:Boolean = false;
      while (!done)
      {
      var o:Object = hierarchicalData.getData(current);

      var matches:Boolean = true;
      for (var p:String in values)
      {
      if (o[p] != values[p])

      { matches = false; break; }

      }

      if (matches)
      return true;

      done = moveNext(); // Here is the problem
      }

      return false;
      }

      moveNext returns true if it was possible to move to the next position and false otherwise, so done should be not moveNext.
      Each time this method is called, it jumps after the first item and return false.

      This code was not tested ... no ?

        Attachments

          Activity

            People

            • Assignee:
              evolverine Mihai Chira
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: