【问题标题】:programmatically expand a tree inside a dojox.TreeGrid以编程方式扩展 dojox.TreeGrid 内的树
【发布时间】:2011-10-10 18:50:32
【问题描述】:

我有一个简单的树形网格,我需要以编程方式展开一行以显示其子级。本质上,我需要伪造触发树打开的点击事件。 在此处查看示例http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_treegrid_model_lazy.html

【问题讨论】:

    标签: dojo dojox.grid.datagrid


    【解决方案1】:

    我没有亲自使用过 TreeGrid,但从 API 文档看来,您想使用 expandoFetch(rowIndex,open) 函数和 open 参数作为 true

    myTreeGrid.expandoFetch(0,true);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-02
      • 2019-11-18
      • 2018-03-26
      • 2020-08-12
      相关资源
      最近更新 更多