It would be helpful if u could provide the code for the ADG. The itemrenderer implementation for the column could have an issue with the new sdk. So the whole problem could not be understood without the piece of code.
For what it's worth, I ran into this too, and it is due to the fact that in AdvancedListBase, there is some code:
protected function itemRendererToIndices(item:IListItemRenderer):Point
if (!item || !(item.name in rowMap))
var index:int = rowMap[item.name].rowIndex;
var len:int = listItems[index].length;
The problem is that index is set to -1 and listItems has no such entry.
In my case, doing the same thing as you, the lookup is where item.name is the renderer for the checkbox cell in the header, and it correctly returns a rowIndex of -1, i.e. the header row.
This method's comment says:
Since item renderers are only created for items within the set of viewable rows
you cannot use this method to get the indices for items that are not visible
So the problem seems to be that while the click happens on the header, visible to the user, it is not considered visible from the code's point of view.
Haven't figured out how to work around this yet.
I am also getting this error. Has anyone come up with a solution yet?
Somehow it is setting vertical scroll position to -1 and since this error is been thrown from framework class. Explicitely set datagrid's vertical scroll Index to 0th position before you make any change to Advanced datagrid's data provider. This should fix the problem.
I am facing the same problem too. Please let me the know the solution.