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

Highlight RowDetailsTemplate when row is highlighted

4 Answers 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 10 Apr 2015, 06:19 PM

Hi,

 We have a RadGridView with a RowDetailsTemplate.  When the user mouses over the row or selects the row, the row is highlighted, but not the details.  We would like to present both the row and the details to the user as a single row.  Is there a way to also highlight the row details when the parent is highlighted?

 

Thanks,

Doug

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 13 Apr 2015, 07:07 AM
Hi Doug,


ControlTemplate of GridViewRow could be modified so that the row details could be highlighted, when the parent ros is being either hovered or selected.

Do you want to have the same colors on hover and selection for row details?


Regards,
Vanya Pavlova
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Doug
Top achievements
Rank 1
answered on 13 Apr 2015, 12:09 PM

Hi Vanya,

 Yes, we would like to have the same colors on the detail rows as the parent row.

 Thanks,

Doug

0
Accepted
Vanya Pavlova
Telerik team
answered on 13 Apr 2015, 12:24 PM
Hello Doug,


You should predefine the default control template of GridViewRow and span the desired elements. 
Setting Background of DetailsPresenter to Transparent will include it in hit testing.

I'm attaching you small sample demo that illustrates this approach. 


Regards,
Vanya Pavlova
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Doug
Top achievements
Rank 1
answered on 20 Apr 2015, 12:26 PM

Thanks Vanya!  The sample was very helpful.

Tags
GridView
Asked by
Doug
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Doug
Top achievements
Rank 1
Share this question
or