Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Bug in the rowindex of the igHierarchicalGrid
posted

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”

Parents
  • 2355
    Offline posted

    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

Reply Children