EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: frankz on March 03, 2018, 09:01:15 AM



Title: datagrid background color rows
Post by: frankz on March 03, 2018, 09:01:15 AM
how can I set the background colors to alternating rows in a datagrid?


Title: Re: datagrid background color rows
Post by: stworthy on March 04, 2018, 02:14:39 AM
Please set 'striped' property to true.


Title: Re: datagrid background color rows
Post by: frankz on March 04, 2018, 08:45:32 AM
Yes it's work, but what change the colors ?
Thanks.


Title: Re: datagrid background color rows
Post by: stworthy on March 05, 2018, 02:25:28 AM
Please add this code to override the striped row's style.
Code:
<style type="text/css">
.datagrid-row-alt{
background: #ccc;
}
</style>