I looked at the documentation and it said that -1 is for checked not sure (greyed check), 1 checked.
What is blank unchecked?
I want to set it in the html for the detail items.
Thanks,
David
I looked at the documentation and it said that -1 is for checked not sure (greyed check), 1 checked.
What is blank unchecked?
I want to set it in the html for the detail items.
Thanks,
David
Hello
Unchecked is zero: “0”
0 gives me the same as -1. Greyed out checkbox with checkmark.
Documentation shows -1 or 1 so there’s something else that must be going on.
Says -1 is ‘not sure’.
So it appears as checked and partially checked works un unchecked not with the code below.
-D
<?php $mykeys = array_keys($myarr); foreach ($mykeys as $mykey) { ?> <item text="<?php echo $mykey; ?>"
id=“check0” im0=“folderClosed.gif” im1=“folderOpen.gif” im2=“folderClosed.gif” checked="-1">
<?php foreach ( $myarr[$mykey] as $myarr2 ) { ?>
<item text="<?php echo $myarr2['email_addr']; ?>"
id="<?php echo $myarr2['id']; ?>" im0=“folderClosed.gif” im1=“folderOpen.gif” im2=“folderClosed.gi
f” checked="<?php echo ($myarr2['email_id'] == '0') ? '0' : '1'; ?>">
<?php } ?>
</item>
<?php } ?>
If you need to check some items, you can mart it in the tree structure. I.e. in xml it will be like
<item id="Overzicht" text="Intern team" im0="view.png" im1="view.png" im2="view.png" checked="1" ></item>
If you need to set “unchecked” - you can simply to pass this parameter - it will be just tree node.
But if you need to check the node status (i.e. selected one), you can usethe next:
console.log(dhxTree.isItemChecked(dhxTree.getSelectedItemId()))