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

How to traversal and color all the cell in a grid? I want to get all the cell to change to dataitem,and them color them by the row's dateitem

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PEIYANG
Top achievements
Rank 1
PEIYANG asked on 20 Apr 2013, 05:31 PM
How to traversal all the cell in a grid? I want to get all the cell  and color them by the cell ,means I must  get the row's dateitem and the cell's  coloumn header?

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 23 Apr 2013, 11:32 AM
Hello PEIYANG,

I am not quite sure if I understand your scenario, but if you would like to set color to the Grid's cells you could use the following CSS rule: 
<style>
.k-grid table td{
    background: red; //specify the cell's background
}
</style>
In case you are requesting a different functionality, please elaborate a bit more on the exact outcome you would like to achieve. This way I would be able to advice you further and provide concrete recommendations. Thank you in advance for your cooperation.
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
PEIYANG
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or