EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 25, 2024, 04:41:11 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 onClickRow give javascript error
Pages: [
1
]
« previous
next »
Print
Author
Topic: treegrid onClickRow give javascript error (Read 2393 times)
jbuttafuoco
Newbie
Posts: 1
treegrid onClickRow give javascript error
«
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
Re: treegrid onClickRow give javascript error
«
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
« 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...