The rowindex is changing before expanding a child grid, and after that.
Check this scenario:
http://jsfiddle.net/cv5zc8ha/1/
Click on the SECOND row in the grid, an alert appears: “row index1”
Open the first row’s hierarchial grid
Click on the SECOND row In the main grid, an alert appears: “row index 2”
Hi Salim,
Thank you for posting in Infragistics forums! What you see is actually not a bug. The rowIndex property is correct because it does not exclude the rows that serve as containers for child layouts. So when you expand the first row another TR element is rendered as a container for the child layout (it wasn’t rendered before the first expand action). Now there are 3 TR elements rendered in the grid. So the rowIndex is correct in this situation. I would recommend using ui.rowKey which represents the corresponding primary key value.
I hope this helps!
Kind regards, Petko Zhekov Software Developer
If this is not a bug, then why is the following not working with the correct row?
igGridSelection("selectRow", ui.rowIndex);