APNSoft - Web Controls, components for ASP.NET Home Help Center Contact Us
About UsProductsDownloadsPurchase
Support

TreeView
Version 3.0



What's New
Overview
Features
Reference Book
Licensing
Support



Populating with Data
Layout and Behavior
Design
Programming




Customizing the look-and-feel of your TreeView is accomplished through the following steps:
  1. Create the XML Structure.

    At this step, you define the XML Structure with TreeView items.

    You can save the XML definition structure as a file and bind the TreeView by specifying the StructureFileURL property of the TreeView component.

    You can build up TreeView at runtime. APNSoft TreeView provides an extremely rich and powerful server-side API allowing developer to add, remove or edit TreeView elements and element collections. You can programmatically control any item at runtime by using two classes TreeViewElement and TreeViewElementCollection.

    You can also apply the XML Document with structure by using the DataSource property. If the TreeView loads structure from the database, you should set the DataSource property to specify a source of data and call the DataBind() method.

  2. Create the Skin.

    A Skin is a collection of one CSS Style and a set of graphic files that determine how the TreeView is going to look. A CSS Style consists of predefined classes. Each Skin file has a predefined name, which cannot be changed. Users can only change content of these files.

    Skin Folder content:

    CSSStyle.CSS        
     
    mOpen.gif sOpen.gif tOpen.gif bOpen.gif  
    mClose.gif sClose.gif tClose.gif bClose.gif  
     
    mLnV.gif mLn.gif sLn.gif tLn.gif bLn.gif
     
    ChkBox.gif ChkBoxChk.gif ChkBoxSemi.gif    

    To see skins, visit the Live Demos -> Design section. To link a TreeView with a Skin, use the SkinFolderURL property. Also you can download the entire collection of skins from the Download Section.

  3. Set component properties.

    Properties can be set in three ways:




  © 2003-2008 APNSoft. All rights reserved. Table of Contents   Terms of use   Contact Us   Help Center