Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 09, 2008 06:55
open dhtmlx forum
checkboxes hidden on tree

Please reference this image:
http://tinypic.com/view.php?pic=2u9h5e8&s=4

Checkboxes are not being shown. But when clicking an item, it shows.

Here is the code being used.

categories_tree = new dhtmlXTreeObject(document.getElementById('categories_tree_div'),"80%","100%",0);
categories_tree.setImagePath("/some/image/path/");categories_tree.enableCheckBoxes(true);categories_tree.attachEvent("onClick",onNodeSelect);function onNodeSelect(nodeId) { categories_tree.setCheck(nodeId,!categories_tree.isItemChecked(nodeId)); }categories_tree.attachEvent("onCheck","onCheck");
function onCheck(nodeId) {
document.getElementById('categories').value = categories_tree.getAllChecked();
}categories_tree.attachEvent("onXLE",onXLE);function onXLE() {document.getElementById('categories').value = categories_tree.getAllChecked();
}categories_tree.loadXML("./xml.php")
Answer posted by Support on Oct 09, 2008 07:30
In which browser isssue occurs for you.

There is known issues with checkbox rendering in Google Chrome and Safari 3.1 , if it is your case - please contact us directly at support@dhtmlx.com - we will send you an updated version. 

If issue occurs in IE - please try to add next line to the init code 
        tree.enableIEImageFix();
it will resolve issue if it is caused by problems with IE image cache.


Answer posted on Oct 09, 2008 07:51
It is in latest version of firefox
Answer posted on Oct 09, 2008 07:53
I have emailed you thanks.  I am a PRO owner.
Answer posted on Oct 09, 2008 16:57
I updated the file (it was the same size as our current one) and it did not help.  Using latest version of firefox.
Answer posted by Support on Oct 10, 2008 05:41
Issue can't be reconstructed locally ( please check attached sample )
If issue still occur for you - please provide any kind of sample where issue
can be reconstructed. 

Attachments (1)
Answer posted on Oct 10, 2008 06:54
Is the dhtmlx tree file in here the PRO version?  This one works, but we need the pro version.

Also I can't compare the dhtmlx common file to ours, as ours is compressed.

Please re-send these files to us.

Answer posted on Oct 10, 2008 06:58
These are our includes....
<link rel="stylesheet" type="text/css" href="./dhtmlx/css/dhtmlXTree.css" />
<script type="text/javascript" src="./dhtmlx/dhtmlxcommon.js"></script>
<script type="text/javascript" src="./dhtmlx/dhtmlxtree.js"></script>
<script type="text/javascript" src="./dhtmlx/dhtmlxtree_xw.js"></script>

Answer posted on Oct 10, 2008 07:18
The problem was an image file.  In older versions iconUncheckAll.gif used to be named iconUnCheckAll.gif with the "C" capitalized.  I renamed this image now checkboxes show.