EasyUI Forum

General Category => Bug Report => Topic started by: erkin on December 18, 2017, 03:41:28 AM



Title: How to use tree(data)grid rowStyler handler?
Post by: erkin 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?


Title: Re: How to use tree(data)grid rowStyler handler?
Post by: stworthy 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';
}
}