EasyUI Forum
May 15, 2024, 11:47:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid background color rows  (Read 6100 times)
frankz
Newbie
*
Posts: 16


View Profile
« on: March 03, 2018, 09:01:15 AM »

how can I set the background colors to alternating rows in a datagrid?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 04, 2018, 02:14:39 AM »

Please set 'striped' property to true.
Logged
frankz
Newbie
*
Posts: 16


View Profile
« Reply #2 on: March 04, 2018, 08:45:32 AM »

Yes it's work, but what change the colors ?
Thanks.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!