EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 05, 2024, 02:53:14 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Dynamic font color for table rows depeneding on specific value of a column
Pages: [
1
]
« previous
next »
Print
Author
Topic: Dynamic font color for table rows depeneding on specific value of a column (Read 3884 times)
JPi
Newbie
Posts: 18
Dynamic font color for table rows depeneding on specific value of a column
«
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
Re: Dynamic font color for table rows depeneding on specific value of a column
«
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
Re: Dynamic font color for table rows depeneding on specific value of a column
«
Reply #2 on:
October 14, 2016, 02:20:56 AM »
Thanks stworthy. I shall try it.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...