javascript - How to get a selected row id in second while using a pagination in Kendo Grid? -


i have a, let's say, 250 rows, devided 25 pages. 10 rows on each page. if i'm on first page, , click on third row, rowindex = 2. if i'm on second page , click on first row, logically i'm supposed rowindex of 11th page, should rowindex = 10. i'm getting rowid = 0. how can fix that?

in truth correct behaviour. because when click on first row, first index in table. doesn't know data on pages because don't exists (why load data don't need? can performance issue)

so if want behaviour describing, have select page number , calculate that.

something like:

rowindex = getrowindex ... page = grid.datasource.page(); rowindex = (page - 1) * 10 + rowindex; 

here demo


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -