How to tell if row detail is an 'alt' row

We are using the grid with alternate rows (e-altrow).

If you use a detail row (e-detailrow) you cannot use a css selector to style the alt detail row.

Example:
There is no way to style the e-detailrow with an alt background color.


3 Replies 1 reply marked as answer

BS Balaji Sekar Syncfusion Team January 19, 2021 01:29 PM UTC

Hi Jeremy, 
 
Greetings from the Syncfusion support. 
 
Based on your query we suspect that you want to apply the CSS in detailrow which is only in Grid’s alt row so we have enabled the alt row with applied the background color of alt-row and detail row from alt-row through CSS. Please refer the below code example and sample for more information. 
[index.html] 
<style> 
      .e-grid .e-row.e-altrow, 
      .e-grid .e-row.e-altrow + .e-detailrow { 
        background-color: grey; 
      } 
    </style> 
 
 
Please get back to us, if you need further assistance. 
 
Regards, 
Balaji Sekar 


Marked as answer

JC Jeremy Carter January 21, 2021 05:20 AM UTC

Balaji Sekar,

Thank you for your solution. Works very well.


BS Balaji Sekar Syncfusion Team January 21, 2021 06:46 AM UTC

Hi Jeremy, 
  
We glad that your issue has been fixed.  
  
Please get back to us if you require further other assistance from us. 
  
Regards, 
Balaji Sekar 


Loader.
Up arrow icon