ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to Grid show number of row in first Column
Title:
B
I
{code}
?
I want to show number row 1 2 3 4 .... in Grid (if have many page of grid when new page this number is continue not reset) pls suggest me
Save Changes
Cancel
nutfergie
asked at 30 Jan 2017
Answers
B
I
{code}
?
in the controller you need this: var nr = 1; return Json(new GridModelBuilder<Lunch>(list, g) { Key = "Id", Map = o => new { Nr = (g.Page - 1) * g.PageSize.Value + nr++, and in the view: new Column{ClientFormat = ".Nr", Header = "Nr"},
Save Changes
Cancel
Omu
answered at 30 Jan 2017
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK