Hi,
I my application is being written in a general MVVM architecture. I'm wondering if there is any sort of way to be able to get rows to be "selected" without them actually being selected by the user. For example I have something working using a style which binds to a property of my model and that works when the rows are manually selected via mouse clicks, however I cannot figure how to get rows to look visually selected when data is initially loaded. Here is the Xaml I'm using to bind to the "IsSelected" property of collection of objects which are bound to my grid.
<UserControl.Resources>
<Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource {x:Type telerik:GridViewRow}}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
</Style>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
</UserControl.Resources>
Any help on how to approach doing this would be greatly appreciated.
I my application is being written in a general MVVM architecture. I'm wondering if there is any sort of way to be able to get rows to be "selected" without them actually being selected by the user. For example I have something working using a style which binds to a property of my model and that works when the rows are manually selected via mouse clicks, however I cannot figure how to get rows to look visually selected when data is initially loaded. Here is the Xaml I'm using to bind to the "IsSelected" property of collection of objects which are bound to my grid.
<UserControl.Resources>
<Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource {x:Type telerik:GridViewRow}}">
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
</Style>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
</UserControl.Resources>
Any help on how to approach doing this would be greatly appreciated.