Declined
Last Updated: 26 Feb 2014 13:52 by ADMIN
Paul
Created on: 10 Feb 2014 13:21
Category: GridView
Type: Feature Request
0
Add SelectedItemsSource for RadGridView for selection manipulation in MVVM scenarios
Add a bindable property to RadGridView which would allow the selection to be manipulated in MVVM scenarios.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
3 comments
ADMIN
Vera
Posted on: 26 Feb 2014 13:52
Hi,

I would suggest you to also check the following blog post, which describes how to bind GridView's SelectedItems collection to a collection in your viewmodel:
http://blogs.telerik.com/vladimirenchev/posts/10-05-31/how-to-synchronize-your-ui-selected-items-with-your-data-context-using-mvvm-and-blend-behaviors-for-silverlight-and-wpf.aspx
Paul
Posted on: 24 Feb 2014 08:42
Actually, MVVM requires separation of View from ViewModel so your "solution" breaks the pattern (requires direct instance of View in ViewModel to access the SelectedItems property). Please reinstate this item.
ADMIN
Vera
Posted on: 21 Feb 2014 17:25
Actually, RadGridView has it SelectedItems collection which holds the currently selected items. You can get, add and remove items from it. Please refer to our online documentation: http://www.telerik.com/help/wpf/radgridview-selection-programmatic-selection.html