Hi,
Looking at the sample Lists of check boxes states (dhtmlx/samples/02_checkboxes/01_pro_list_checked).
When the sample is run the item under Checkboxes labelled ‘checked = 0’ shows as checked, yet in the xml files used by this sample, tree_cl.xml the item is tagged as ‘checked = 0’. I do not understand why this is so, surely if the item is unchecked it should show as unchecked.
Have tested on different computers, all running IE9 with the same results. Am I misunderstanding how check boxes should work or is this a bug?
Hi
If “checked” attribute is “-1”, an item checkbox is partially checked if 3-state mode is enabled. Checked=“0” makes item checked as well as checked=“0”. This behaviour can not be changed as a lot of our customers use “checked” attribute as is.
So if checked = 0 makes the item checked, what makes the item un-checked. Using the sample sample code (dhtmlx/samples/02_checkboxes/01_pro_list_checked) and the same sample xml file (tree_cl.xml) but this time with all the ‘checked’ = “0”, the sample app still returns all the items as checked.
How do I set an item as un-checked when loading via xml?