Treeview Control - Display errors

A

Athan

I use MS activex treeview control in my asp pages. The problem I have
is that some computers display the treeview with no problems while
others display the control without the text on the nodes. I checked the
IE settings, IE version, comctl32.ocx version,... everything seems to
be the same on the machines that do not have the problem and on the
machines with the problem...
this is a simplified code extract of the treeview control:
<object id="oTreeView"
classid="clsid:C74190B6-8589-11D1-B16A-00C0F0283628"
width=100% height=200>
<param name="Style" value="6">
<param name="LineStyle" value="1">
<param name="HideSelection" value="0">
<param name="_ExtentX" value="25797">
<param name="_ExtentY" value="5292">
<param name="_Version" value="393217">
<param name="Indentation" value="1000">
<param name="LabelEdit" value="0">
<param name="PathSeparator" value="\">
<param name="Sorted" value="0">
<param name="Checkboxes" value="0">
<param name="FullRowSelect" value="0">
<param name="HotTracking" value="0">
<param name="Scroll" value="1">
<param name="SingleSel" value="0">
<param name="ImageList" value>
<param name="BorderStyle" value="0">
<param name="Appearance" value="1">
<param name="MousePointer" value="0">
<param name="Enabled" value="1">
<param name="OLEDragMode" value="0">
<param name="OLEDropMode" value="0">
</object>
<span id="oSpan1"></span>
<script>
oRoot = oTreeView.Nodes.Add();
oRoot.Text = "This is the root node";
oChild = oTreeView.Nodes.Add(oRoot, 4);
oChild.Text = "This is a child node";
oTreeView.Nodes.Add(oRoot, 2, "", "This is a sibling");
oTreeView.Nodes.Add(oChild, 4, "", "Child's child");
oRoot.Expanded = true;
</script>
<script for="oTreeView" event="NodeClick">
oCurrentNode = oTreeView.SelectedItem;
if (oCurrentNode) {
sPath = oCurrentNode.FullPath;
oSpan1.innerText = "Path: " + sPath;
}
</script>
Any input is greately appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top