惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
V
Vulnerabilities – Threatpost
P
Proofpoint News Feed
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
月光博客
月光博客
T
Troy Hunt's Blog
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Scott Helme
Scott Helme
T
Threat Research - Cisco Blogs
P
Palo Alto Networks Blog
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
Know Your Adversary
Know Your Adversary
SecWiki News
SecWiki News
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Threatpost
Forbes - Security
Forbes - Security
S
Schneier on Security
P
Proofpoint News Feed
T
Tor Project blog
Cyberwarzone
Cyberwarzone
The Hacker News
The Hacker News
Cloudbric
Cloudbric
S
Security @ Cisco Blogs
Webroot Blog
Webroot Blog
Attack and Defense Labs
Attack and Defense Labs
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
S
SegmentFault 最新的问题
V
V2EX
量子位
B
Blog RSS Feed
宝玉的分享
宝玉的分享
T
The Blog of Author Tim Ferriss
罗磊的独立博客
J
Java Code Geeks

博客园 - JIN Weijie

基于Entity Framework的自定义分页,增删改的通用实现 基于Dapper的分页实现,支持筛选,排序,结果集总数,多表查询,非存储过程 让Windows 7变成WIFI热点 新浪微博RSS生成器Ver 1.0 同步Twitter帐号 修改Thickbox,预加载图片和点击图片前后浏览 ASTreeView 1.5.8发布(ASP.Net树控件) ASTreeView 1.5.3发布(ASP.NET树控件) ASTreeView 1.4.0发布(ASP.NET树控件) ASTreeView 1.1.1发布(ASP.NET树控件) 在GoDaddy上部署SubText ASTreeView 1.0发布(一个ASP.NET树控件) 自定义增加Windows xp IIS的连接数 javascript closure(闭包)的一个示例 vmware增加磁盘空间方法以及出错解决 <=本博客已经转移至jinweijie.com=> [js][asp.net]客户端控制validator [asp.net]优化ViewState [js]remove whitespace for firefox [windows]自动拨号脚本
ASTreeView 1.3.0发布(ASP.NET树控件)
JIN Weijie · 2009-11-27 · via 博客园 - JIN Weijie

继上次1.1.1版本发布后,又陆续地更新了几次,但为了避免频繁发布造成大家厌烦,所以累积到今天一起发布,希望对有需要用树的朋友有所帮助,谢谢大家的时间!下载:http://www.astreeview.com

从1.1.1到1.3.0,有以下的改进:

1.右键菜单扩展


在新版本中,支持增加菜单项,如图所示:
image

增加自定义菜单非常简单:

        /// <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" ) );
        }

在线演示:http://www.astreeview.com/astreeviewdemo/ASTreeViewDemo3.aspx

2.主题支持

新版本支持主题,现在内置有3中主题,开发者也很容易开发自己的主题,如图所示:

在线演示:http://www.astreeview.com/astreeviewdemo/ASTreeViewDemo10.aspx

3.左到右(ltr)显示支持

在显示阿拉伯语这类从左到右的语言的时候,树的显示也需要从左往右,新版本ASTreeView支持从左往右显示,如图所示:

4.点击父节点展开/收缩节点

新版本中,最终用户可以点击父节点展开和收缩节点,这在当只有子节点可以点击的时候比较有用。设置EnableParentNodeExpand=true开启该功能。

如图所示:

image

5.节点支持html

新版本的ASTreeView支持html作为节点的字符,如图所示:

6.支持转义字符

修改节点时,支持转义html,属性为EnableEscapeInput,如图所示:

7.支持多行编辑

新版本支持多行编辑,只需将EnableMultiLineEdit设置为true开启该功能,效果:

8.支持拖拽事件

很多朋友需要的拖拽事件现在终于来啦!效果图:

使用:

先写一javascript函数:

    <script type="text/javascript">
        //parameter must be "elem"
        function dndHandler( elem ){
            document.getElementById( "<%=divConsole.ClientID %>" ).innerHTML += ( ">>node dragged:" + elem.getAttribute("treeNodeValue") + "<br />" );
        }
    </script>

然后设置:OnNodeDragAndDropCompleteScript="dndHandler( elem )"

在线演示:http://www.astreeview.com/astreeviewdemo/astreeviewdemo1.aspx

9.禁止子节点属性

ASTreeViewNode新增EnableChildren属性,如果设置为false,那么最终用户将不能拖拽其他节点作为该节点的子节点。

在线演示:http://www.astreeview.com/astreeviewdemo/astreeviewdemo1.aspx

谢谢大家支持,如果有任何问题,欢迎联系我:

网站:www.jinweijie.com

email: seiecnu(at)gmail.com