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

altRowTemplate

1 Answer 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 02 Jul 2014, 09:32 PM

The first example on http://docs.telerik.com/kendo-ui/api/web/grid has the following line: 

altRowTemplate: kendo.template($("#alt-template").html())

Does this row contain information about the colors used in the alternating rows?  Right now it displays them in white and grey.  If I wanted to change the colors how would I go about doing so?




1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 03 Jul 2014, 07:06 AM
Hi Bruce,


The rows are displayed in white and grey in a regular Grid in which no altRowTemplate is defined. In the current scenario the styling is left for the developer to handle. For example you could add a custom CSS class to the row in the template, which could be used to add a background.

Regards,
Dimiter Madjarov
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
Grid
Asked by
Bruce
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or