EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: raghav94 on July 01, 2017, 03:27:49 AM



Title: TreeGrid Get Node
Post by: raghav94 on July 01, 2017, 03:27:49 AM
I am using a treegrid.
There is a method to get checked nodes and selected nodes.
I want to get the nodes, where only some children are selected.
It is not a checked node nor is it selected.
So how do get these nodes?
Please see the attached picture to understand which nodes I'm talking about.

Edit:

I want to get indeterminate as well as checked nodes in one array
I have tried-
Code:
var bb = $("#test").treegrid('getCheckedNodes',['checked','indeterminate']);
This does not work


Title: Re: TreeGrid Get Node
Post by: stworthy on July 01, 2017, 08:10:48 AM
Please call the 'getCheckedNodes' method to get the indeterminate nodes.
Code:
var nodes = $('#tg').tree('getCheckedNodes', 'indeterminate');	// get indeterminate nodes