I have kendo grid in asp.net mvc and i use server wrapper.I want Additional column named "Row Number" that is simple counter (1,2,3,...). I want this counter never change by client sorting. Always first row be 1 second row be 2 ,... in column "RowNumber"
how can I do this in kendo grid ?
For server side pagination this script can be used (in columns section of grid):
Other answers are OK but they don't apply pagination effects. So I think better implementation would be:
Lars Hoppner`s Answer Was Correct, But If You Change The page, the numbering will get reset. my solution was to add page number and page size to the formula:
You can use the
dataBound
event:(demo)
I am using Angular and Kendo together and I set the index value like this (using Lodash):