Skip to main content
Email Password   helpLost your password?

Sample Image - treelistcontrol.v3.gif

Introduction

This is my third attempt at making a TreeListControl for Internet Explorer-based web applications. The first was very slow and required ASP to generate a tree. The second has lots of features, and even resizable columns, but, while it did not suffer from the freeze-up delays that occurred in the first one, was generally sluggish in operation if there were more than a few nodes on the screen. This latest version has tighter code and is generally more versatile all round. It doesn't have resizable columns, but it shouldn't be too hard to put them in. If I do that, I'll upload the updated version here. The only other major limitation of this control is that it is fixed-width. That is, you have to specify the exact width of each column, and this determines the control width.

Features that version 3.0 has are:

To use the control, simply include treelistcontrol.js and treelistcontrol.css in your html file, then, inside the element (body tag, div tag, or where ever) you want to render the tree inside, place a script tag and build the tree according to the API. A demo of how to do this is inside the included zip file.

Usage

See the API below for explanations of the tree's objects, and the file demo.htm for an example of how to use the tree.

  1. Create a tree control
  2. Create and add the columns to the tree
  3. Add all the initial nodes to the tree
  4. document.write the tree object to the page

Tree List Control v3.0 API

TreeListControl

TreeListControl(strRootNodeLabel, strRootNodeIconSrc, boolHideColumnHeadings, boolHideRootNode)

Properties

Methods

TreeListControlColumn

TreeListControlColumn (intWidth, strTitle, boolPreventRowClickEvents)

TreeListControlNode

TreeListControlNode (boolShowChildren, strIconSrc, strXMLSrc, strReferenceKey)

Properties

Methods

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralCan you add drag & drop features? Pin
tndang
2:49 10 Jul '06  
GeneralDoes License allow useage? Pin
ErichG
4:05 7 Jul '06  
GeneralHow to get the node text in the click() function? Pin
shiffauli
4:20 9 May '06  
GeneralTreeListControlNode.useIcon Pin
raahul80
12:42 2 May '06  
GeneralRe: TreeListControlNode.useIcon Pin
raahul80
13:18 2 May '06  
GeneralMove Nodes Pin
mediapod
15:01 14 Nov '05  
Generalover SSL ? Pin
Anonymous
4:54 12 Oct '05  
GeneralAdd scrollbar in tree list Pin
nguyenzoro
16:45 29 Sep '05  
GeneralRe: Add scrollbar in tree list Pin
nguyenzoro
20:24 2 Oct '05  
GeneralRe: Add scrollbar in tree list Pin
a@xpto.com
6:06 9 May '06  
Generalxml file and unavailable - 405 Pin
gaetanl
6:16 10 May '05  
Generalwhy i get the xmlhttp status - 200 Pin
aryong
23:17 26 Apr '05  
GeneralRe: why i get the xmlhttp status - 200 Pin
aryong
17:03 27 Apr '05  
GeneralMozilla Firefox?? Pin
Yosarian
21:53 12 Apr '05  
GeneralAfter upgrading IE to v6 resizing columns does not work Pin
lilya
23:06 29 Mar '05  
GeneralRe: After upgrading IE to v6 resizing columns does not work Pin
Nathan Ridley
23:38 29 Mar '05  
GeneralHide both root node and column headings yields UI bug Pin
Kyle Secrist
6:27 12 Jan '05  
GeneralRe: Hide both root node and column headings yields UI bug Pin
nguyenzoro
17:33 29 Sep '05  
GeneralRe: Hide both root node and column headings yields UI bug Pin
nguyenzoro
20:23 2 Oct '05  
GeneralWould you explan more about how the UI refresh works? Pin
Kyle Secrist
13:00 11 Jan '05  
Generalresizable column Pin
ysahin
6:53 10 Jan '05  
GeneralRe: resizable column Pin
Nathan Ridley
9:29 10 Jan '05  
GeneralCan't load nodes at run-time by using strXMLSrc in TreeListControlNode Pin
tblyplus
22:03 10 Aug '04  
GeneralRe: Can't load nodes at run-time by using strXMLSrc in TreeListControlNode Pin
Nathan Ridley
2:05 12 Aug '04  
GeneralExplorer view Pin
neejurk
20:54 30 May '04  


Last Updated 6 Dec 2002 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009