chenxueyong 发表于 2013-1-29 07:38:48

Ext CheckTreeNode Example

实例:
http://melin.iteye.com/upload/picture/pic/3010/a21b9798-480d-4608-bc69-656fa97ee028.bmp

实例是模仿dhtmlxTree的
在render中主要添加了这一行'<img src="', a.isCheck ? "/images/tc/iconCheckAll.gif" : "/images/tc/iconUnCheckAll.gif",'" class="x-tree-ec-icon">',
再获取这个节点 this.ckNode = cs;
在initEvents中添加该节点的事件:
E.on(this.ckNode, "click", this.ckClick, this, true);
很简单!

<div class="dp-highlighter"><div class="bar"><div class="tools">Java代码 http://melin.iteye.com/images/icon_copy.gif
页: [1]
查看完整版本: Ext CheckTreeNode Example