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

Return to specific page using Listview and DataPager

1 Answer 37 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Art Handy
Top achievements
Rank 2
Art Handy asked on 28 Feb 2013, 04:38 PM
IS there any way, when using the ListView and DataPager with multiple items on multiple pages, after selecting one of the item links and going to a separate page to be able to return to the page of the original selected item?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 05 Mar 2013, 02:23 PM
Hello Art,

You can save the index to a variable and use the following approach:
function changePage() {
    var listView = $find("<%= RadListView1.ClientID %>");
    listView.fireCommand("Page", 3);
}

As demonstrated in the following topic:
http://www.telerik.com/help/aspnet-ajax/listview-firecommand.html

Hope this helps. Please give it a try and let me know if it works for you.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ListView
Asked by
Art Handy
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Share this question
or