so there's something else going on.
Can you elaborate on:
...while retrieving the saved data from the grid i am copying some columns like
arraycoll['name'] = 'saome name';...
Can you post an example?
Here i am populating an arraycollection with the data which is coming from the database.
In this arraycollection i want to copy some items into the other arraycollection which is a dataprovider
to a datagrid.(I dont want to copy the complete row, but some items in a row)
so when i am copying like
So the problem is after the above loop was completed, all the rows in the arrcoll is filled with
the last row items of arrcoll2.
Another problem is in the datagrid i used an itemrenderer of richtexteditor to edit that cell.
so when i edit that cell and save the edited data to the dataprovider like
data[listData.dataField] = 'editedCellData';
all the cells of that column are updated with the same data.
So please provide me the solution. If u want anymore details please reply me soon.
error.JPG 39.6 K
Probably, the problem here is that you copy references from one arrayCollection to the other one, so when you change a property of an object in the first one, the other one will reflect that change too. Is there any line in your code which says something like arrcoll = arrcoll2?
Solving this problem will likely solve your second problem automatically.
If not, please try to post your (simplified) code.
Thanks dany my problem solved