Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dominik on Jan 15, 2008 06:49
open dhtmlx forum
dhtmlxTree with disabled checkboxes possible?

Is it possible to have a dhtmlxTree with checkboxes, where all checkboxes are disabled (i.e., their checked-state is shown but cannot be changed)?

Thanks a lot in advance!
Answer posted by Support on Jan 15, 2008 09:51
It not possible to set such mode for whole tree (without code modification ) but you can specify it directly in xml
    <item disabled="true"

elements with such attribute will be rendered as items with disabled checkbox ( it still can be checked | unchecked ) but can't be changed.

Also you can can load normal tree and add next code to block any checkbox change

    tree.attachEvent("onCheck",function(){
       return false;
    });