Some basics: need highlight all selected row on click the cell

2 posts, 0 answers
  1. Reina
    Reina avatar
    1 posts
    Member since:
    May 2015

    Posted 18 May 2015 Link to this post

    I tried SelectionUnit="FullRow" to select a row with default highlights, and in RadGridView.RowStyle setting Trigger IsSelected with Value="True" to change a selection for all row with bacground colour. Nothing works properly (highlights only a cell), only IsMouseOver works that I expected.

     

    <telerik:RadGridView x:Name=... SelectionUnit="FullRow" 

    ... >

                        <telerik:RadGridView.RowStyle>
                            <Style TargetType="{x:Type telerik:GridViewRow}">
                                <Style.Triggers>
                                    <Trigger Property="IsSelected" Value="true" >
                                        <Setter Property="Background" Value="#CF7600"/>
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </telerik:RadGridView.RowStyle>

     

    Do you have any simple examples for solve this problem? 

    First image: http://docs.telerik.com/devtools/wpf/controls/radgridview/selection/basics.html

    but it's doesn't work.

  2. Stefan
    Admin
    Stefan avatar
    1073 posts

    Posted 19 May 2015 Link to this post

    Hi Renata,

    In order to customize the selected row, you need to predefine its template. A possible approach for this would be to extract the template using MS Expression Blend and search for a Border element with Name="Background_Selected". Please refer to the Styling a Row article for more information on the matter.

    I hope this helps.

    Best Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top