EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 30, 2024, 05:29:18 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
>
Bug Report
>
How to use tree(data)grid rowStyler handler?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to use tree(data)grid rowStyler handler? (Read 5601 times)
erkin
Newbie
Posts: 29
How to use tree(data)grid rowStyler handler?
«
on:
December 18, 2017, 03:41:28 AM »
Hi, i use jQuery EasyUI 1.5.1 and rowStyler for treegrid. Documentation for rowStyler:
The function take two parameters:
rowIndex: the row index, start with 0
rowData: the record corresponding to this row
But on the fact i have first call with
rowIndex =
0
,
rowData =
{}
,
and subsequent calls with
indexRow =
actual_row_data
,
rowData =
undefined
.
It is right?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: How to use tree(data)grid rowStyler handler?
«
Reply #1 on:
December 20, 2017, 07:32:20 PM »
Here is the example shows the 'rowStyler' function on the treegrid.
Code:
function rowStyler(row){
if (row.name == 'Java'){
return 'background:#eee';
}
}
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...