Sirn Loong Toh
Posts: 0
Joined: Wed Apr 01, 2015 8:04 am

How do I display row number in the first column

Hi guys,

How can I display the row numbers in my grid in the first column dynamically?

Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How do I display row number in the first column

Hello Sirn,

You have to:
1) create JS variable on the custom JS page:

var myNumber = 0;

2) add JS code on the first column mapping:
return myNumber++;

Sirn Loong Toh
Posts: 0
Joined: Wed Apr 01, 2015 8:04 am

How do I display row number in the first column

got it! thanks but I did something slightly different instead. I had to create a storage variable via the model and storage window then only map.

Is there a way I can do it via javascript instead of using the model and storage option like you mentioned?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How do I display row number in the first column

Sure, you can implement it with plain JS, without storage variables

Return to “Issues”