Sounds like you're not handling recycling properly. There is an old post on
my blog about renderer recycling and plenty of forum topics
Flex SDK Team
Adobe System, Inc.
Thanks for your reply.
I read your reply and blog. I had some functions that does change the color of the rows if its >10. And i changed the way you mentioned in the blog.
protected function drawRowBackground(s:Sprite, rowIndex:int, y:Number, height:Number, color:uint, dataIndex:int):
if (dataIndex >= 10 && hasMorethan10)
rowColor = hasMorethan10Color;
rowColor = color;
super.drawRowBackground(s, rowIndex, y, height, rowColor, dataIndex);
But still has the same issue ( duplicate rows and empty rows when i change the order of the items in the datagrid).
I tried removing all the code that i wrote (like above mentioned function), and i still has the same issue.
I could not figure out the reason yet.
Any thoughts on this.
1 person found this helpful
Does your renderer handle recycling? Is every visual aspect determined from
the data property? Post you renderer code if you're not sure.
Thanks for your responses. I managed to figure out the issue i had.
Even though i handled the renderer recycling, it was still creating the same issues.
Its because i used the verticalScrollPostion value in datagrid based on the dataprovider length.
Once i removed that it started working properly.
I couldnt explain myself for a better explanation.
Let me know if you have any.
Thanks for your support.