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

Ulternate Row Colors

4 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Venkitachalam
Top achievements
Rank 1
Venkitachalam asked on 20 Sep 2010, 02:04 PM
Hi,

As we have different background color for alternate rows in outlook theme, can we have it in Web20 theme?

Thanks & Regards,
Chandran

4 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 20 Sep 2010, 04:31 PM
Hi Venkitachalam,

 You can do so by using  the following CSS rule:

<style>
.t-grid .t-alt
{
    background: #E3EEFF;
}
</style>

You can customize the background color per your requirements.


Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Venkitachalam
Top achievements
Rank 1
answered on 21 Sep 2010, 07:28 AM
Thanks Atanas, your solution is working perfectly.
Thanks a !!!

Regards,
0
mo2011ti
Top achievements
Rank 1
answered on 30 Jul 2012, 03:22 PM
hello,

I have two grids on my page, but i want to apply that only on one of them

How to apply this on specific grid with id ="MyGrid1"

i try this, it's not working

 

#MyGrid1 .t-grid > .t-alt

 

{

background: #FEEBB3;

}


Thanks

0
Dimo
Telerik team
answered on 30 Jul 2012, 03:39 PM
Hi Moti,

The selector is wrong:

#MyGrid1 .t-grid > .t-alt

It assumes that an element with an ID of "MyGrid1" has a descendant with a CSS class of "t-grid" which is not the case, because the ID and the "t-grid" CSS class are applied to the same element.

I recommend you to get familiar with this good CSS tutorial at:

http://css.maxdesign.com.au/selectutorial/

Regards,
Dimo
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Grid
Asked by
Venkitachalam
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Venkitachalam
Top achievements
Rank 1
mo2011ti
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or