ASTreeView 1.1.2 What’s New

I registered a domain for ASTreeView: www.astreeview.com

This domain will be only used for ASTreeView, updates, demos, blogs. It can be regarded as the official site. :D

I release ASTreeView 1.1.2 just now. It can be download from: http://astreeview.googlecode.com/files/astreeview-1.1.2.zip

online sample: http://www.astreeview.com

added two new features:

1. Extending ContextMenu
   
Now it is possible to add your customized ContextMenu Items to the menu. A screenshot:
     image 

     Online demo: http://www.astreeview.com/astreeviewdemo/ASTreeViewDemo3.aspx

     To add your customized menu, it’s easy:

/// <summary>
        /// initial controls, bind you events etc. here
        /// </summary>
        private void InitializeComponent()
        {
            this.astvMyTree.ContextMenu.MenuItems.Add( new ASContextMenuItem( 
                "Custom Menu 1", "alert('current value:' + " 
                + this.astvMyTree.ContextMenuClientID
                + ".getSelectedItem().parentNode.getAttribute('treeNodeValue')" 
                + ");return false;", "otherevent" ) );

            this.astvMyTree.ContextMenu.MenuItems.Add( new ASContextMenuItem( 
                "Custom Menu 2", "alert('current text:' + " 
                + this.astvMyTree.ContextMenuClientID 
                + ".getSelectedItem().innerHTML" 
                + ");return false;", "otherevent" ) );
        }


     You can replace the “alert” with your own javascript function.

     The code is also included in the new sample package.

2. Expand node by click node text.
    In version 1.1.2, the end user can open the folder by clicking on the node text. It is useful when only the leaf nodes are clickable, for example, bookmarks.
    image

    To enable this feature, just set the “EnableParentNodeExpand” property of ASTreeView.

 

Downlaod ASTreeView 1.1.2: http://astreeview.googlecode.com/files/astreeview-1.1.2.zip

View posts by date
«October»
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567