EasyUI Forum
May 05, 2024, 02:53:14 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: Dynamic font color for table rows depeneding on specific value of a column  (Read 3884 times)
JPi
Newbie
*
Posts: 18


View Profile Email
« on: October 13, 2016, 09:13:00 PM »

Hi,

I have a scenario where certain rows of datagrid need to have a color different than the remaining rows based on value of a specific column.

Eg . RollNo  Name   Age   FontRed
        23     Adam     10     X
        45     James     9     
        67     Lily        10     X

Since FontRed is for rows - Adam and Lily, only those 2 rows should have entire row font color as red else green. How can this be achieved ?

Thanks,
JPi
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 14, 2016, 12:06:25 AM »

The 'rowStyler' function allows you to custom the row style. Please look at this example http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=DataGrid%20Row%20Style
Logged
JPi
Newbie
*
Posts: 18


View Profile Email
« Reply #2 on: October 14, 2016, 02:20:56 AM »

Thanks stworthy. I shall try it.
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!