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

  • SEARCH
  • Home
  • 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 8391685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:19:32+00:00 2026-06-09T19:19:32+00:00

I have a <s:List> in my Flex 4.6 project which uses an itemrenderer. My

  • 0

I have a <s:List> in my Flex 4.6 project which uses an itemrenderer. My application occasionally pushes more items onto this <s:List>, and the itemrenderer obtains and applies this change as expected. My list looks like this:

<s:List borderVisible="false" contentBackgroundAlpha="0" 
        dataProvider="{this.data.root.item}" id="reviews"
        itemRenderer="renderers.pages.ReviewRenderer" minHeight="1"
        top="10" width="100%">
  <s:layout>
    <s:VerticalLayout gap="35" requestedMinRowCount="1" useVirtualLayout="false/>
  </s:layout>
</s:List>

… and I append more data onto the data provider object like so:

this.data.root.item.addItem(this.form.reviewData);

I would like to know if there is an event that I can listen for whenever the addItem() method pushes more data onto the object for the <s:List> to display.

I know I could use the FlexEvent.VALUE_COMMIT event, but, according to the documentation, this would dispatch whenever data is first applied to the list, and any item user interaction with the list updates one of its properties (such as selecting one of the list items).

So, just to be clear, I am looking for an event that is dispatched only whenever addItem() appends data to the data provider.

Note: I am using a <s:List> component for a web project, not the mobile optimized version.

Thank you for your time.

  • 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-09T19:19:33+00:00Added an answer on June 9, 2026 at 7:19 pm

    If the dataProvider (this.data.root.item in your example) to the list is an ArrayCollection, XMLListCollection, or ListCollectionView it will dispatch CollectionEvent.COLLECTION_CHANGE when ever the collection changes.

    CollectionEvent has a kind property that you need to inspect, as there are various kinds of changes (see the CollectionEventKind class). In particular, you might be interested in CollectionEventKind.ADD.

    Another approach would be to override the addItem() method of your dataProvider and dispatch your own “itemAdded” event:

    override public function addItem(item:Object):void
    {
        super.addItem(item);
        dispatchEvent(new Event("itemAdded"));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am doing a web application in flex. i have a list of items
I have a list in flex mobile project which contains multiple rows. I want
i have a List which uses a an arrayCollection as dataprovider and an itemRenderer
I have list <s:List> in my Flex application that is displaying its list items
I have a list of webservices from a Flex project. I am trying to
I have a Flex list and a custom ItemRenderer. I'd like to be able
I have a datasource, which I show as a list in a Flex UI.
In a Flex Mobile project I have a simple itemRenderer where I'm trying to
I have a flex mobile app which based upon a list of questions generates
In my flex mobile project I have 2 views is a list of surveys

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.