Getting Selected Items from select column [RadGridView & RadPager]

2 posts, 0 answers
  1. Shreya
    Shreya avatar
    18 posts
    Member since:
    Aug 2014

    Posted 25 Nov 2014 Link to this post

    Can you please help me in this...

    I am facing a problem, using RadGrid and since it has many records I have used RadPager. I have a GridViewSelectColumn in my grid to select and deselct all. The paging works perfectly. I am using MVVM patterm in my solution.
    Please Help me in achieving following scenarios:

    1) When Select All suppose I have 186 records and my page size is 10 so I have 19 pages in raddatapager and last one has only 6 records. how can I select all the 186 records  

    2) To capture my selecteditems I have attached a behaviour to grid to get the selected Items in my view model. There I am only getting the first page selected Items
    ((CAManagementViewModel)this.AssociatedObject.DataContext).SelectedVehicles = this.AssociatedObject.SelectedItems;

    3) In the above property of selected Items if user selects different records on different page how to get all maintained in SelectedItems of

    Thanks a lot in advance. Please some help, Its urgent.
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 26 Nov 2014 Link to this post


    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 and it also does not know about all the other items not displayed on the current page.  

    You could remember the selection and set the SelectedItems once a page is navigated
    to, however, RadGridView.SelectionItems collection can only hold the selected items on the current page.


    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 R3 2016 release webinar banner
Back to Top