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 6788121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:26:49+00:00 2026-05-26T17:26:49+00:00

I have a Datagrid with an ArrayCollection as DataProvider, the arrayCollection is partially generated

  • 0

I have a Datagrid with an ArrayCollection as DataProvider, the arrayCollection is partially generated by a remoteObject call, the dataprovider seems to works at least until I try to edit the field…

By the RemoteObject I only receive an ArrayCollection with the field ip, but the datagrid looks for the fields ip, check and save…
If I add/edit this new field it works, but only under particular condition

The DataGrid:

<s:DataGrid id="datagrid" left="10" right="10" top="136" 
            dataProvider="{listaIPCheck}" bottom="10" requestedRowCount="4">
    <s:columns>
        <s:ArrayList>
            <s:GridColumn dataField="ip" headerText="Asset"/>
            <s:GridColumn dataField="check" headerText="Inventory"/>
            <s:GridColumn dataField="save" headerText="Salvataggio"/>
        </s:ArrayList>
    </s:columns>
</s:DataGrid>

The Script:

[Bindable]private var listaIPCheck:ArrayCollection; 

private function ro_resultHandler(event:Event=null):void
{
  listaIPCheck = new ArrayCollection();
  listaIPCheck = ro.getListUpdate.lastResult;
  heap = 0;         
  // Read Below {POINT #1}
  init3();  
}

private function init3():void
{
 // Read Below {POINT #2}
 if (heap<listaIPCheck.length)
 {
    // omitted the initialization of the process p
    p.addEventListener(NativeProcessExitEvent.EXIT, onExit);
    try{                        
      p.start(startupInfo);
    }catch(e:Error){}
 }
}


private function onExit(e:NativeProcessExitEvent):void {    
    // Read below {POINT #3}
}

Here is my code, now as you can see there are 3 line where I wrote to read below…
Let’s assume to put this simple for instead of the commented line (once at a time)

for (var k:Number=0;k<listaIPCheck.length;k++)
{
  listaIPCheck.getItemAt(k).check = "checkVal";
  listaIPCheck.getItemAt(k).save = "saveVal";
}

This code always work in the 3 points, so at the end of the call the ArrayCollection is always filled with the new values, but the datagrid refresh the items only in point #1 and #2
Why not in Point #3???

  • 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-05-26T17:26:49+00:00Added an answer on May 26, 2026 at 5:26 pm

    The reason the DataGrid doesn’t refresh when you change properties on an item in an ArrayCollection is that because changing the properties does not trigger the collectionChange event. The DataGrid has no way to know that properties within the object changed. It has to do with pointers and memory spaces and what exactly the DataGrid is looking at for binding purposes.

    In most cases, the invalidateList() method to force a refresh of the display. You can call the refresh() method or the itemUpdated() method on the collection or replace the dataProvider completely to force a refresh.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a DataGrid, populated with objects in an ArrayCollection. After updating one of
I have a DataGrid with 5 template columns, However when I try and add
We have a Datagrid: <nross:ScalableDataGrid id=grid dataProvider={model.practiceJoinRequestThickList.practiceJoinRequestThicks}> <nross:columns> <ui:DataGridToolTipColumn headerText=ID dataField=practiceJoinRequest.userId/> <ui:DataGridToolTipColumn headerText=Name dataField=userName/>
I have datagrid and inside this grid have template field. I add Header text
My Flex datagrid automatically scrolls to the top when I update the dataProvider (ArrayCollection).
I have an array collection set as a datagrid's dataprovider. I'm pulling content from
I have simple mxml code <mx:DataGrid id=DGG editable=true> <mx:dataProvider> <mx:Object scheduledDate=4/1/2006/> </mx:dataProvider> </mx:DataGrid> <mx:Button
I have a Datagrid that gets its data from an ArrayCollection of model beans.
I have an ArrayCollection bound to an editable DataGrid, another component needs to know
I have a datagrid getting bound to a dataset, and I want to display

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.