Dynamically select multiple rows from ViewModel

3 posts, 0 answers
  1. Steve
    Steve avatar
    2 posts
    Member since:
    Oct 2013

    Posted 22 Jan 2015 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 23 Jan 2015 Link to this post

    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.

     
  3. Steve
    Steve avatar
    2 posts
    Member since:
    Oct 2013

    Posted 23 Jan 2015 in reply to Stefan Link to this post

    That worked great. Thank you!
Back to Top