Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3760
Is there a way to style GroupedRows differently depending on the grouping level?
posted

Is there a way to style GroupedRows differently depending on the grouping level? In InitializeRow you can set the styles on a per row basis as in

cells(3).CssClass = "level1"


but I can't find any way of setting different styles on different groups rows.

I would like to do something like this but there is no exposed cssclass on a grouped row.

 
    Private Sub whdgRecordLinks_GroupedRowInitialized(sender As Object, e As Infragistics.Web.UI.GridControls.GroupedRowEventArgsHandles whdgRecordLinks.GroupedRowInitialized
        If e.GroupedRow.OwnerCollection.ParentRow Is Nothing Then
            e.GroupedRow.CssClass = "level1"        
        End If
    End Sub
 
I have also tried applying styles such as 
 
        TBODY TR.GroupRow TD
        {
            background-imageurl(./ig_res/Office2010Blue/images/captionbackground.gif);
            font-weightbold;
        }
This works but applies to all GroupRows.
Parents
  • 33839
    posted

    Hi JJB,

    You should submit a feature request for the missing group row css property.  In the mean time, you should be able to work around this by setting an item css class on the container grid.

    tbody.customClass>tr.igg_GroupedRow>td { 

    background-imageurl(./ig_res/Office2010Blue/images/captionbackground.gif);
                font-weightbold; }
    Just have a different custom class for each level.
    regards,
    David Young 
Reply Children