EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 20, 2024, 10:35:40 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
>
Node is null in onCheck event of tree when tree page is opened in window.showMod
Pages: [
1
]
« previous
next »
Print
Author
Topic: Node is null in onCheck event of tree when tree page is opened in window.showMod (Read 9590 times)
zzdfc
Jr. Member
Posts: 58
Node is null in onCheck event of tree when tree page is opened in window.showMod
«
on:
March 17, 2014, 08:51:56 PM »
Hi:
Node is null in onCheck event of tree when tree page is opened in window.showModalDialog.
almost every event parameter "node" of tree is null when tree page is opened in window.showModalDialog.
(IE)
«
Last Edit: March 17, 2014, 09:04:02 PM by zzdfc
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Node is null in onCheck event of tree when tree page is opened in window.showMod
«
Reply #1 on:
March 17, 2014, 11:34:01 PM »
How do you use the 'onCheck' event? Please provide an example to demonstrate your issue.
Logged
zzdfc
Jr. Member
Posts: 58
Re: Node is null in onCheck event of tree when tree page is opened in window.showMod
«
Reply #2 on:
March 18, 2014, 12:24:11 AM »
var treeOpts = {
'checkbox': true,
'cascadeCheck': false,
'onClick': tree1_click,
'onCheck': tree1_check,
'onBeforeLoad': tree1_beforeLoad
};
$('#tree1').tree(treeOpts);
var root = $('#tree1').tree('getRoot');
$('#tree1').tree('expand', root.target);
function tree1_check(node, checked)
{
if (node)// node is null
{
AddRow(node, checked);
}
}
function tree1_beforeLoad(node, param)
{
var strUrl = "/Sys/User/GetUsers/" + teid;
if (node)
{
param.tiid = node.id; }
$('#tree1').tree("options").url = strUrl;
}
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Node is null in onCheck event of tree when tree page is opened in window.showMod
«
Reply #3 on:
March 18, 2014, 01:10:48 AM »
Please try the attached file 'test.html'. It works fine.
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...