EasyUI Forum
September 14, 2025, 06:18:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: TREE | How to know "indeterminate's" with "getChecked"  (Read 7790 times)
jlivio
Newbie
*
Posts: 11



View Profile Email
« on: April 15, 2015, 02:40:38 AM »

Hi, i think this is a easy question, here it goes

How to know "indeterminate's" with "getChecked"?
Thanks

Code:
nodes[i].id //This ID is indeterminate 

Code:
 function getChecked() {
        var nodes = $('#tt').tree('getChecked', ['checked', 'indeterminate']);
        var s = '';
        for (var i = 0; i < nodes.length; i++) {
            if (s !== '') s += ',';
            s += nodes[i].id;
        }
        alert(s);
    }
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 15, 2015, 11:34:16 PM »

The code below returns all indeterminate nodes.

Code:
function getIndeterminateNodes(){
var nodes = $('#tt').tree('getChecked', ['indeterminate']);
console.log(nodes)
}
Logged
jlivio
Newbie
*
Posts: 11



View Profile Email
« Reply #2 on: April 16, 2015, 01:02:38 AM »

Thanks, explained in the wrong way, the problem is to know the interminate for that specific level of the checked item id. Can you help?
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!