RadGridView XAML Preselected data

2 posts, 0 answers
  1. Grant
    Grant avatar
    2 posts
    Member since:
    Mar 2012

    Posted 01 Mar 2012 Link to this post

    Hi all,

    I have a data set being displayed on a grid view to a user, and I want the data set to be preselected so the user may deselect by clicking each individual row.  I'm hoping there's just a property I need to set that allows for this to work.  Below is a snippet of what I'm talking about:

    <telerik:RadGridView x:Name="gridToSessions"
                                                 ItemsSource="{Binding}"
                                                 AutoGenerateColumns="False"
                                                 IsFilteringAllowed="False"
                                                 ShowGroupPanel="False"
                                                 telerik:StyleManager.Theme="Summer"
                                                 CanUserSelect="True"
                                                 SelectionMode="Multiple"
                                                 <!--Need code here to allow data to be preselected!-->
                                                 Width="400"
                                                 Height="300"
                                                 IsSynchronizedWithCurrentItem="False"
                                                 EnableRowVirtualization="False"
                                                 RowIndicatorVisibility="Collapsed"
                                                 IsReadOnly="True">

    Thanks!
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Mar 2012 Link to this post

    Hello Grant,

    You can take a look at this blog post for a reference. 

    Regards,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top