EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jlivio on April 15, 2015, 02:40:38 AM



Title: TREE | How to know "indeterminate's" with "getChecked"
Post by: jlivio 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);
    }


Title: Re: TREE | How to know "indeterminate's" with "getChecked"
Post by: stworthy 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)
}


Title: Re: TREE | How to know "indeterminate's" with "getChecked"
Post by: jlivio 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?