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

RadGridView XAML Preselected data

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grant
Top achievements
Rank 1
Grant asked on 01 Mar 2012, 07:48 PM
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!

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Mar 2012, 08:09 AM
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 >>
Tags
GridView
Asked by
Grant
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or