View record current index on the grid

QuestionsView record current index on the grid
Ghaleb Dweikat asked 10 years ago

Hello,

Is it possible to view the current index of each record on the grid? What I need is like numbering that will always stay constant per position. Something like this:

1 Jhon
2 Alice
3 Mike
4 Zoro

and if I sort by name I'll get:

1 Alice
2 Jhon
3 Mike
4 Zoro

Thanks in advance.

1 Answers
Abu Ghufran answered 10 years ago

Try setting:

$grid["rownumbers"] = true;
$grid["rownumWidth"] = 30;
$g->set_options($grid);

Your Answer

17 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?