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

AlternateRowBackground doesn't merged with RowStyle

6 Answers 208 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pavel
Top achievements
Rank 1
Pavel asked on 03 Dec 2014, 08:49 AM
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.

6 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 05 Dec 2014, 01:03 PM
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.

 
0
Pavel
Top achievements
Rank 1
answered on 05 Dec 2014, 01:43 PM
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?
0
Nick
Telerik team
answered on 05 Dec 2014, 02:06 PM
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.

 
0
Lisitsa
Top achievements
Rank 1
answered on 05 Dec 2014, 02:14 PM
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.
0
Lisitsa
Top achievements
Rank 1
answered on 05 Dec 2014, 02:18 PM
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
0
Nick
Telerik team
answered on 08 Dec 2014, 12:26 PM
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.

 
Tags
GridView
Asked by
Pavel
Top achievements
Rank 1
Answers by
Nick
Telerik team
Pavel
Top achievements
Rank 1
Lisitsa
Top achievements
Rank 1
Share this question
or