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.
1 Answer
try rowRenderIndex or $parent.$index
ng-click="grid.appScope.selectItem($event, rowRenderIndex);"
or
ng-click="grid.appScope.selectItem($event, $parent.$index);"
4 Comments
Akhil
cool,
rowRenderIndex its working for me. thanks. even if i tried with grid.renderContainers.body.visibleRowCache.indexOf(row)Ramesh Rajendran
@Akhil Please accept this answer if it resolved your issue
Umair Aamir
so if I have that click event in a child hierarchy then should I do like
$parent.$parent.$index?Umair Aamir
rowRenderIndex is returning the index of visible row only
<tr ng-repeat="cells in CouponsList.CellPhones"> <td><button ng-click="doStuff($index+1)">{{cells.localVendorAddress}}</button></td>Its supposed to be like this... You need an iterator