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

How to get current page index of listview pager using jQuery?

1 Answer 187 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Parthasarathi
Top achievements
Rank 1
Parthasarathi asked on 24 Jan 2013, 09:44 AM
Hi All,

How to get current page index when I click on kendo pager button?
I have tried in following way to get page index. But it is not working.
$('.k-link').live('click', function (e) {
    alert($(this).text()); 
});

How we can get page index? Immediate help would be appreciated.

Regards,
Partha.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 28 Jan 2013, 09:30 AM
Hello Partha,

In order to achieve this you can use the following:

$('[data-role="pager"] ul').on("click", "li", function(e) { alert($(this).text());})
  Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ListView
Asked by
Parthasarathi
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or