| [TreeGrid] ??2011-12-27 14:44:05by zq02 和tree类似,treeGrid需要指定父节点,显示的字段,和当前节点ID。但同时也集成了grid的一些特性,可以通过columns标签指定多个显示域,实例代码如下: <a:treeGrid showCheckBox="true" bindTarget="demo_ds" width="800" height="500" idField="id" style="border:none" parentField="parent"> <a:columns> <a:column name="name" prompt="id" width="250" renderer="mailrenderer" /> <a:column name="parent" prompt="parent" width="100"/> <a:column name="sequence" prompt="sequence" width="100"/> <a:column name="comment" prompt="comment" width="250" editor="tf" /> </a:columns> <a:editors> <a:textField id="tf" /> </a:editors> </a:treeGrid> 显示效果如下图: treeGrid的渲染方法和grid类似也是通过renderer来实现 treeGrid通过设置showCheckBox来实现节点的可选择性,方法和tree类似 Demo Attachments |
Comments
0 Responses to the article暂时没有评论。