ng-click="grid.appScope.selectItem($event,row.entity.$index);"
i want to pass row index through this function. Even if i tried with $index,$parent.$index. I am unable to get the index.
Asked
Active
Viewed 2,707 times
1
-
`
` Its supposed to be like this... You need an iterator
1 Answers
1
try rowRenderIndex
or $parent.$index
ng-click="grid.appScope.selectItem($event, rowRenderIndex);"
or
ng-click="grid.appScope.selectItem($event, $parent.$index);"

Ramesh Rajendran
- 37,412
- 45
- 153
- 234
-
cool, `rowRenderIndex` its working for me. thanks. even if i tried with `grid.renderContainers.body.visibleRowCache.indexOf(row)` – Akhil Apr 05 '18 at 06:02
-
-
so if I have that click event in a child hierarchy then should I do like `$parent.$parent.$index`? – Umair Aamir Aug 28 '18 at 15:06
-