EasyUI Forum
March 29, 2024, 01:27:32 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: How to use tree(data)grid rowStyler handler?  (Read 5203 times)
erkin
Newbie
*
Posts: 29


View Profile
« 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


View Profile Email
« 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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!