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

[Solved] Navigate to last page on mvc telerik grid

0 Answers 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kapil
Top achievements
Rank 1
Kapil asked on 15 Feb 2012, 06:04 PM

How can you navigate to the last page of a telerik grid using javascript. My scenario is I want to go to the last page of the grid in which the new record was added. I know I can use the 'pageTo' method in the Telerik Client API but I am not able to figure out how to count the number of pages a grid has. I was looking up if somebody was doing the same thing that I want to do and stumbled across this piece of code

var lastPage = ticketsGrid.totalPages(ticketsGrid.total);

But the value of the variable lastPage is infinity which is not possible as I only have 1 page in that grid.

Any suggestions anyone. Thanks in advance!!

Tags
Grid
Asked by
Kapil
Top achievements
Rank 1
Share this question
or