GridRow Style when groupped

3 posts, 0 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 02 Sep 2009 Link to this post

    Hi,

    I'm providing a RowStyle and an AlternateRowStyle to GridView. Every thing works as expected except when user groups the row by columns. In this scenario, the DataRow Styles are using the default styles, not those  provided. Is there any way to get the Data Rows (not the Group Rows) using the provided styles when groupped.

    Thanks 
  2. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 02 Sep 2009 Link to this post

    Excuse me,

    I think I didn't describe accurately the problem. Style are working well, also when grouping (I've added a couple of attached behaviors and are working fine in both cases). The problem is only about row back colors. When no group is present, rows are taking background color from the custom RowStyle and Alternate Style. When grouping, Data Row background are not using the provided values in styles, but they are white for RowStyle and Orange (SelectionBackGround in OfficeBlack Theme) for AlternateRowStyle.
  3. DevCraft banner
  4. Kalin Milanov
    Admin
    Kalin Milanov avatar
    447 posts

    Posted 07 Sep 2009 Link to this post

    Hi Daní,

    I have prepared a small sample for using red and blue rows for alternation. When grouping the rows persist their alternate colors. In that sense I cannot reproduce your error. Is this helpful or am I missing something?

    Sincerely yours,
    Kalin Milanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top