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

invalid datagrid.rowCount when accessed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Advanced Data Grid
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. create a datagrid in mxml.
      2. request the rowCount on FlexEvent.CREATION_COMPLETE event (or anything before or after this function)

      It changes the rowcount when data is inserted, but i want to retrieve data with the number of visible rows

      Actual Results:
      The default I always get back is 6 rows(excluding header).

      Expected Results:
      But the visual rowCount (listItem.Length) is 30 (in my application)

      Workaround (if any):

      1. Extend the DataGrid class
      2. override the function updateDisplayList
      3. place "setRowCount(listItems.length);" in the function

      and voila, I got the correct rowCount.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: