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

Selected record on grid view page

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 14 Apr 2014, 01:47 PM
How to show selected record from grid view to another page?
When I navigate to the view with GridView I do refresh the ItemsSorce and Gridview defaults to the first page when my selected record on the over page. Is there elegant way of doing this (like one method call) or should I just calculate a page and set selected page?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 17 Apr 2014, 11:23 AM
Hi,

As I understand you have RadGridView together with RadDataPager and you would like to navigate to a specific page and set the SelectedItem there. Is this correct?

Then, when you refresh the ItemsSource, RadGridView default to the first page and the selection is lost. Of this is the issue, then this would be an expected behavior. 
When using the data pager the GridView shows only one page with the loaded data.It is actually not aware that there are other items to be loaded. Therefore, the SelectedItem cannot be persisted as it is currently not available into the grid.


You will have to select the same page and then select the item back.

Regards,
Didie
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Sergey
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or