Kendo Grid CSS Styling
HTML
<script src="http://cdn.kendostatic.com/2012.1.322/js/kendo.all.min.js"></script>
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2012.1.322/styles/kendo.default.min.css">
<label class="subSectionTitle smallIndent">Campaign Billing History</label>
<div class="rightsubsection darkbackground indent" id="billingHistory"></div>
CSS
/*rows*/
.k-grid-content>table>tbody>.k-alt
{
background:white;
}
.k-grid-content>table>tbody>tr:hover{
background: #F1F1F2;
}
JavaScript
var dataSource = {
data:[
{ date: "5/30/2013", pi: 'VISA ending in 1234', amount: '$' + '15.00' },
{ date: "5/30/2013", pi: 'VISA ending in 1234', amount: '$' + '14.39' },
{ date: "5/30/2013", pi: 'VISA ending in 1234', amount: '$' + '16.10' }
]
};
$("#billingHistory").kendoGrid({
dataSource: dataSource,
selectable: true,
columns: [
{ field: 'date', title: 'Transaction Date' },
{ field: 'pi', title: 'Payment Method' },
{ field: 'amount', title: 'Total amount' }
]
});