Tree widget missing getUnChecked method

Hi,

I'm using the threestate checkbox feature, but I dont know how I can get the unchecked items. There is a function "getChecked" but is missing a "getUnchecked".

Check/Uncheck a parent node fire onItemCheck only on this node, not on the child nodes.

Thanks

Tagged:

Comments

  • Hello,
    You can iterate through the tree item with the help of each method.

    function getUnchecked(){
      var uncheckedBox = [];
      $$("tree").data.each(function(obj){
        if(!obj.checked){
          uncheckedBox.push(obj.id);
        }
      });
      alert(uncheckedBox);
    }
    

    https://snippet.webix.com/ygbd39rj

  • Thanks, but its a workaround.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion