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
1390
Row index using igGrid with templating
posted

Hi, I’m trying to display the row index inside a grid column, but I’m unable to execute a calculation based on the index like:

<td>${parseInt($i) + 1}</td>

 

The calculation is not executed and rendered as:  ${parseInt(0) + 1}

Does the templating engine support inline calculations / functions?

If I only use the $i directive each row’s index comes out as 0, and is not incremented?

Thanks in advanced.

Christoff

 

Parents Reply Children
No Data