This is a migrated thread and some comments may be shown as answers.

Row Number And Total Rows in Grid

2 Answers 536 Views
Grid
This is a migrated thread and some comments may be shown as answers.
José Antonio
Top achievements
Rank 1
José Antonio asked on 23 Jan 2012, 10:02 PM
Hi,

Is it possible to show row number in Grid and the total number of rows at the top/bottom of the grid?
For example, in the demo http://demos.kendoui.com/web/grid/virtualization-remote-data.html having a first column indicating the row number (1, 2, 3, 4...) and at the bottom/top of the grid have the total number of rows (for example: 10,000 in the case we have 10000 records).

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 24 Jan 2012, 11:24 AM
Hello José,

You can show any data in column by using template. You can find example of using column template here.
Unfortunately using virtual scrolling will be hard to determine which item in which position is as the data will be prefetched and the items in the DataSource might appear differently that the actual order.

Possible solution for this scenario is to generate this index from your service and return it as part of the data to which the grid is bound and simply show it in the grid.

All the best,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
José Antonio
Top achievements
Rank 1
answered on 24 Jan 2012, 04:43 PM
Ok, I'll try send that info from the server.

Thanks.
Tags
Grid
Asked by
José Antonio
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
José Antonio
Top achievements
Rank 1
Share this question
or