Treeview Control - Display errors

Discussion in 'ASP General' started by Athan, Dec 20, 2005.

  1. Athan

    Athan Guest

    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.
     
    Athan, Dec 20, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,008
    Mark Goldin
    Jan 17, 2004
  2. keithb
    Replies:
    0
    Views:
    322
    keithb
    May 17, 2006
  3. cageman

    TreeView in server control throws errors...

    cageman, Mar 8, 2007, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    155
    cageman
    Mar 19, 2007
  4. Ionutz
    Replies:
    2
    Views:
    555
    Ionutz
    Oct 23, 2005
  5. AndrewF
    Replies:
    1
    Views:
    384
Loading...

Share This Page