EasyUI Forum
April 28, 2024, 07:22:32 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 Get Node  (Read 4401 times)
raghav94
Newbie
*
Posts: 9


View Profile
« 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
« Last Edit: July 01, 2017, 06:22:23 AM by raghav94 » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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
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!