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

Dynamically select multiple rows from ViewModel

2 Answers 220 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 22 Jan 2015, 08:25 PM
I have a RadGridView with MultiSelect turned on. When this Grid is instantiated, I need to select rows that are determined from a List passed into the ViewModel. Any ideas on how to do this?  The "SelectedItems" property of the RadGridView is readonly and cannot be set via markup.

Thank you!

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 Jan 2015, 02:20 PM
Hello Steve,

A way of accessing the SelectedItems property of the RadGridView is through the code-behind of your application. Please refer to the Programmatic Selection documentation article.

Let me know how this works for you.

Best Regards,
Stefan
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.

 
0
Steve
Top achievements
Rank 1
answered on 23 Jan 2015, 05:26 PM
That worked great. Thank you!
Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Steve
Top achievements
Rank 1
Share this question
or