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

Selection when paging

1 Answer 45 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Murray
Top achievements
Rank 2
Murray asked on 10 Jul 2012, 06:28 PM
So I select a row in the GridView on page 1, move to page 2, then move back to page 1. The selection is gone.

I didnt sort or apply filters or grouping.

Any idea how to retain the selection?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 11 Jul 2012, 06:13 AM
Hello,

 When the grid is being paged, it is actually aware of the current page only. The RadGridView simply "knows" that someone is changing its ItemsSource, which is the new page. It does not know how many pages are there.  

You could remember the selection and set the SelectedItem once the old page is navigated.

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataPager
Asked by
Murray
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Share this question
or