`
mikesu
  • 浏览: 69488 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

eXtremeTable 的ec:tree的简单使用

阅读更多
<ec:tree
identifier="id"
parentAttribute="parentId"
items="dirList"
action="Dir/search.do"
view="org.extremecomponents.tree.TreeView"
filterable="false"
sortable="false"
var="dir"
>
  <ec:row>
    <ec:column property="name" title="名称" cell="org.extremecomponents.tree.TreeCell"/>
    <ec:column property="descripsion" title="描述"/>
  </ec:row>
</ec:tree>

主要是红色部分和ec:table有所不同,identifier声明了用来区别每一个对象的属性,parentAttribute用来声明对象中记录父结点的属性。关键是在cell中定义Tree的显示方式,如果不这样做就和普通的ec:table没有区别了。
分享到:
评论
4 楼 zhaoxiaoyu8 2012-03-14  
麻烦能不能给个详细的例子。
zhaoxiaoyu8@gmail.com
3 楼 helloahello 2008-12-11  
你好,我的为什么图片找不到,而且每个节点显示的内容为两行呢
2 楼 xxmei 2008-11-14  
你好,能否发一个详细的关于tree的例子
djxx2004@gmail.com
1 楼 test097 2007-03-27  
FILTERED_COUNT 这个怎么每次都是"0" ?

相关推荐

Global site tag (gtag.js) - Google Analytics