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

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

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Reina
Top achievements
Rank 1
Reina asked on 18 May 2015, 10:51 AM

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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 May 2015, 12:00 PM
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
Tags
GridView
Asked by
Reina
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or