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”
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
Kind Regards,
Petko Zhekov
Software Developer
Infragistics, Inc.
Hi,
To check whether row is expanded or not you can use “expanded” method.
I hope this helps!
Kind regards, Petko Zhekov Software Developer
We have implemented what you suggested, but it is not logic at all. There is an inconsistancy in the behavior of your 2 functions and this is not explained at all in your documentation. Also, it needs further development to check if the child grid has been expanded or not.
Hi Salim,
Thank you for your quick response! The Selection expects the index from the data rows collection (excluding the child layouts containers). Please consider using selectRowById method like this:
igGridSelection('selectRowById', ui.rowKey)