I'm working on a project that is using the kendoGrid and odata service with virtual scrolling enabled.
The data we are pulling into the the grid doesn't use a traditional id number for it's primary key, so to have something that looks like an id number in the table we created an id column and append the number via a column template, which looks like this.
let _columns = [{
field: 'rowNumberer',
title: '#',
template: '#= ++rowNumber #',
width: 30
}
So the issue we are having is that as you scroll down the page the number increments fine, but it's also increments when you scroll up which throws the count off.
Is there another way to handle this?