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

Alternating Row Colors for Rad Grid

1 Answer 250 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rD
Top achievements
Rank 1
rD asked on 15 Aug 2011, 04:37 PM
Hi!

I have a Grid with an alternating item style, so every alternating row has an alternating color. The grid gets updated when a button is clicked on the page.

I need all rows with errors to have its back color to be set to red after the button click. I tried to accomplish this in Item Data Bound where I switch the back color to red for an item that is a griddataitem and is an error.

But, if there are 3 rows errored out one after the other, the color applies to only the first and third rows and leaves the middle row as it was. Any suggestions on how I could work through this to achieve what I am working towards?

-rD

1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 18 Aug 2011, 04:16 PM
Hello Ren,

Could you refer to this demo, where you can see how to customize the appearance of the grid items or rows based on their column cell values?

I hope this helps.

Best wishes,
Galin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
rD
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or