Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 13, 2007 15:32
open dhtmlx forum
In that case, is any way to find out what nodes have been checked through this automatic checking process...

In that case, is any way to find out what nodes have been checked through this automatic checking process? Pertaining to one of my previous emails, I need to check other nodes with the same value as anything that has been checked (my tree has duplicate elements throughout).

Answer posted on Feb 13, 2007 15:34

There is no way to detect that node was checked or unchecked automatically by parent checking/unchecking. But you can consider that if node is checked - then all child nodes are also checked.               

function on_check_hand(id,state){

                //actual oncheck code
                ...
                //virtual oncheck for child items
                //get array of direct childs

                var childs=my_tree.getSubItems(id).split(",");

                //call same handler for all childs

                for (var i=0; i<childs.length; i++)

                               on_check_hand(childs[i],state);
}
tree.setOnCheckHandler(on_check_hand);

Answer posted by radyno (Support) on Nov 28, 2014 19:09

Having solved the problem mentioned above, you may also look through the possible related problems with free grid control and weekly view calendar.