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

Issue related with background color selected row on RadGridView

1 Answer 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Veselov
Top achievements
Rank 1
Veselov asked on 24 Oct 2012, 09:39 AM
We apply VistaTheme for our silverlight application. This error occurs when we click by checkbox background color row becomes white. When we click by row we get expected result and background color row becomes blue. Below we attach screenshot. Thank's for help. 
This is code our view with RadGridView 
<Grid x:Name="LayoutRoot" 
          Background="White" 
          DataContext="{StaticResource MyViewModel}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
                <StackPanel>
                    <telerik:RadGridView Grid.Row="0" SelectionMode="Multiple"
                             x:Name="clubsGrid" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="False"
                             ItemsSource="{Binding Clubs}" IsReadOnly="True" IsTabStop="False"
                             Margin="5">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewSelectColumn />
                            <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"  />
                            <telerik:GridViewDataColumn Header="Established" DataMemberBinding="{Binding Established}" />
                            <telerik:GridViewDataColumn Header="StadiumCapacity" DataMemberBinding="{Binding StadiumCapacity}" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
            <TextBlock>
                <Run Text="SelectedItem: " />
                <Run Text="{Binding ElementName=clubsGrid, Path=SelectedItem}"/>
            </TextBlock>
            <TextBlock>
                <Run Text="CurrentItem: " />
                <Run Text="{Binding ElementName=clubsGrid, Path=CurrentItem}"/>
            </TextBlock>
        </StackPanel>
        <StackPanel Grid.Row="1" Orientation="Horizontal">
            <Button Content="Click" Click="Button_Click"/>
        </StackPanel>
    </Grid>

1 Answer, 1 is accepted

Sort by
0
Dmitry
Top achievements
Rank 1
answered on 24 Oct 2012, 12:40 PM
Look here and here.

The issue is in new unfocused selected state. As I understand, the idea is to make it the same as focused selected state.
Tags
GridView
Asked by
Veselov
Top achievements
Rank 1
Answers by
Dmitry
Top achievements
Rank 1
Share this question
or