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.
Posted on:26 Feb 2014 13:52
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:
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.
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