Selected record on grid view page

2 posts, 0 answers
  1. Sergey
    Sergey avatar
    23 posts
    Member since:
    Oct 2011

    Posted 14 Apr 2014 Link to this post

    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?
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Apr 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top