AlternateRowBackground doesn't merged with RowStyle

7 posts, 0 answers
  1. Pavel
    Pavel avatar
    7 posts
    Member since:
    May 2012

    Posted 03 Dec 2014 Link to this post

    Hello,

    I have an application with lot's of windows with grids to display data. I'm using both RadGridView and RadTreeListView controls.

    I need to style grid rows in different ways: mostly it is coloring foreground based on data and alternate rows coloring. Color for alternate rows is the same over the application. But styles for foreground colors are different for every single grid and for different data. So I suppose that if I setup property AlternateRowBackground once in the root style of the grid and then I will specify only RowStyle for every grid based on specific data to display it will merge my specific RowStyle with AlternateRowBackground. Unfortunately, I can't do that because if I set AlternateRowBackground GridView will not merge it with RowStyle: it will only apply AlternateRowBackground for the Background property od GridViewRow and that's all!

    I believe it's a bug, because in common cases there're one style for all rows and only background changes for alternates. But now I have to specify AlternateRowStyle basedon my specific row style with only one setter for background for every grid.

    For example this thread is about the same problem.
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 05 Dec 2014 Link to this post

    Hi Pavel,

    Indeed we are considering impementing this out of the box, however since this is a potential breaking change for a lot of our clients that are used to this behavior, we have to ensure there are no side cases that are gonna break when introducing such a change. 

    At the current moment the approach you should take is the same as Vlad suggested in the referenced forum thread. 

    Regards,
    Nick
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. Pavel
    Pavel avatar
    7 posts
    Member since:
    May 2012

    Posted 05 Dec 2014 in reply to Nick Link to this post

    Hi Nick,

    Thank you for your reply. It's good to hear that you're going to fix this issue. When can we expect this change?
  4. Nick
    Admin
    Nick avatar
    593 posts

    Posted 05 Dec 2014 Link to this post

    Hello Pavel,

    As I said, a change like that takes a lot of testing in order to ensure we are not going to break most common scenarios. Therefore I cannot commit to a certain time frame, but I assure you we are going to do our best to include it in our binaries as soon as we can. 

    Regards,
    Nick
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. Lisitsa
    Lisitsa avatar
    16 posts
    Member since:
    Apr 2014

    Posted 05 Dec 2014 in reply to Nick Link to this post

    Hello Nick,

    just wanted to add that I'm waiting for this fix too. It's a really common way, because it's used in standard WPF DataGrid.
  6. Lisitsa
    Lisitsa avatar
    16 posts
    Member since:
    Apr 2014

    Posted 05 Dec 2014 Link to this post

    I've made a feature request for this case:
    http://feedback.telerik.com/Project/143/Feedback/Details/145788-make-one-rowstyle-for-both-normal-and-alternated-rows
  7. Nick
    Admin
    Nick avatar
    593 posts

    Posted 08 Dec 2014 Link to this post

    Hi Andrey,

    Thank you for logging the issue. You can track the progress in it. 

    Regards,
    Nick
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top