Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8910397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:40:49+00:00 2026-06-15T03:40:49+00:00

when i am updating a spark list like this: searchView.gridView.dataProvider = new ArrayCollection( data

  • 0

when i am updating a spark list like this:

searchView.gridView.dataProvider = new ArrayCollection( data );

i sometimes get the full data from the array “data” displayed in the list, but sometimes only the first four items. i checked and both the array and the dataProvider after setting it always have the correct number of entries.

here is the list code from the mxml:

<s:List id="gridView" width="1024" height="390" itemRenderer="com.xxx.xxx.view.component.GridViewItemRenderer">
    <s:layout>
        <s:TileLayout rowHeight="195" columnWidth="242" requestedColumnCount="4" horizontalGap="0" verticalGap="0" />
    </s:layout>
</s:List>

i can’t figure out why it sometimes shows everything and then again shows just the first row.

UPDATE: it seems to be somehow connected to using the TileLayout. when i remove the layout it always displays all entries.

UPDATE 2: it also seems to only occur when i go from no items in the dataprovider (empty array) to n items. if there are already items displayed and the dataprovider gets updated with more or less items it works.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:40:51+00:00Added an answer on June 15, 2026 at 3:40 am

    I had the same issue. I just used a band aid though. If you do this, it should show all.

    var myLayout:LayoutBase = gridView.layout;
    gridView.layout = null;
    gridView.layout = myLayout;
    

    Another option is just to create a new layout object and set it after the dataProvider.

    var newLayout = new TileLayout();
    newLayout.rowHeight = 195;
    newLayout.columnWidth = 242;
    newLayout.requestedColumnCount = 4;
    newLayout.horizontalGap = 0;
    newLayout.verticalGap = 0;
    
    gridView.dataProvider = newDataProvider;
    gridView.layout = newLayout;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ArrayCollection that is the dataProvider for a spark.components.List , which has
When updating a DataTable with 1850-ish new rows to a FbDataAdapter I get a
Im updating ActiveDirectory from an external HR system. This system wil produce True/False values
I am updating a div with a partial view by using something like this:
After updating to rubygems 1.5.0, I get this error message when trying to run
After updating to Xcode 4.5 beta I have this error. I don't get the
After updating to Parsec 3.1 from 2.x, code using many1, such as word =
Before updating jquery mobile on a site from version: v1.0b1 to the present: 1.2.0,
After updating my ubuntu from 10.04 to 11.04, I opened eclipse and wondered why
Edit: Updating post based on Martins comments below Hello, I'm just trying to get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.