Tree data (TreeDataGenie)

Description

Clicking the ... button next to this property will open the Tree Data Genie.

images/genie.png

Siblings

To add top level branches to a tree click the "Add item - Sibling" button and then type the name of the item or items you wish to add in the Add Item dialog.

images/genie2.png
Adding a sibling to a tree

Children

  1. In order to add a child to any branch on the tree first highlight the parent branch and then click the "Add item - Child button".

  2. The Add Item dialog will open. Type the name or names of the child items that you want to assign.

    images/genie3.png
  3. The added siblings look something like this in the genie:

    images/genie5.png
  4. Run the tree control in Live Preview:

    images/genie6.png

Item Properties

Each item on tree has its own properties list. This makes it easy to assign icons and javascript events to the item.

images/genie4.png

Adding a Collapsed Icon

  1. To add an icon for when a branch of a tree is collapsed first click on the branch you want to add the icon.

    images/genie7.png
  2. Click the ... button next to the Collapsed icon property. The Specify Image dialog will open.

    images/genie8.png
  3. If you have defined an image file somewhere on your desktop that you want to use as an icon check "Image in Web Project or Style" and hit select.

    images/genie9.png
  4. Choose "Select from Web Project Folder"

    images/genie10.png
  5. Click "Add Image to Project".

    images/genie11.png
  6. Click the up button next to file Sourcename and navigate to the icon file you want to use. Then click OK

    images/genie12.png
    You might need to specify the specific file extension (ex .png) when navigating.
  7. The file should now appear in your project list. Click OK and OK again to close the Specify Image editor. Also click OK to close the tree data genie and run the component in Live Preview - Full Preview.

    images/genie13.png

Expanded Icons

Expanded icons appear when the branch of a tree is opened so that all of the children in that branch are displayed. You can add an icon to an expanded branch in pretty much the exact same way that you do for the collapsed branch. The only difference is that the expanded icon is defined in the Expanded icon property. See the section above this for an example.

  • images/genie15.png
    The Expanded Icon Property
  • images/genie14.png
    An example of an Expanded icon in Live Preview

Changing the structure of a tree.

When creating a tree it sometimes becomes necessary to promote or demote items. This is easily done using the arrow buttons in the top left corner of the Tree Data Genie.

images/order.png

Promoting and Demoting items

This page has so far used the genus and species names of various oak, apple, and palm trees to create a tree control. Say you wanted to place these under a higher level folder..

  1. Create the folder that you want everything to fit under. Do this by clicking 'Add item - Sibling' or 'Add item - Child' button and then typing then item to add into the Add Item dialog.

    images/order2.png
  2. Highlight the new item. Move the item to the top of the list by clicking the double up arrow. The single up arrow will also move the item up one row per click.

    images/order4.png
  3. Now highlight everything you want grouped under the new branch. All of these items should already be underneath the item that they will be grouped under on the list.

    images/order5.png
  4. Click the > button on the left side of the Tree Data Genie to demote all of the highlighted items.

    images/order6.png
  5. Adjust using the arrow buttons as needed

    images/order7.png
    The new tree
  6. Run in Live-Preview

    • images/order8.png
      Collapsed
    • images/order9.png
      Expanded