This content has been marked as final. Show 4 replies
How are you adding the user created row?
What is the dataProvider?
I have a similar problem. I have a list of items in one panel and when the selected item changes, I rebuild/reassign the columns and dataprovider for the datagrid. Only the last row is selected and remains selected no matter what row I click on. Each row is still receiving itemRollOver events, but they're just not being highlighted.
Did u find a solution?
got it. it was nothing to do with the data grid. My new item:Object that I was creating (to add to the data grid) was outside of a for loop and so it wasn't creating a fresh object each time but rather reusing the same object. So, the data grid was correct in selecting the last row because all rows were essentially pointing to the same item.
silly mistake =P
vertex, your situation sounds similar. Make sure you have a separate "new" object for each item, and on all references to the same item.