EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 11:56:19 PM
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
>
Treegrid and rowstyler function
Pages: [
1
]
« previous
next »
Print
Author
Topic: Treegrid and rowstyler function (Read 10498 times)
alastairwalker
Newbie
Posts: 14
Treegrid and rowstyler function
«
on:
August 11, 2014, 08:19:00 AM »
I see that there is a rowstyler function for datagrid. I am using the treegrid, and need a function that will perform the same task.
Any suggestions as to how to implement such a function for treegrid?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Treegrid and rowstyler function
«
Reply #1 on:
August 11, 2014, 08:34:51 AM »
The usage of 'rowStyler' function in treegrid is same as in datagrid. The code below shows how to use 'rowStyler' function in treegrid.
Code:
$('#tg').treegrid({
rowStyler:function(row){
if (row.persons == 2){
return 'background:#ccc'
}
}
})
Logged
alastairwalker
Newbie
Posts: 14
Re: Treegrid and rowstyler function
«
Reply #2 on:
August 12, 2014, 07:21:05 AM »
Thank you very much!
Alastair
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...