EasyUI Forum
April 25, 2024, 04:41:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: treegrid onClickRow give javascript error  (Read 2393 times)
jbuttafuoco
Newbie
*
Posts: 1


View Profile Email
« on: January 16, 2019, 11:28:57 AM »

I have a treegrid which is working fine.  Now I need to click (or double click) on a row to popup a form.  When I add

onClickRow: function(row) { alert('hello world'); },

I get the following in the JS console

[Error] TypeError: null is not an object (evaluating 'row[field]')
   clickEventHandler (jquery.easyui.all.js:13755)
   clickEventHandler (jquery.easyui.all.js:16788)
   dispatch (jquery-3.2.1.min.js:3:10322)

Any ideas?

Jim
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 16, 2019, 11:27:22 PM »

No problems, this code works fine.
Code:
$('#tg').treegrid({
onClickRow: function(row){
console.log(row)
}
})
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!