0
我有一個簡單的樹形網格,我需要以編程方式展開一行以顯示其子節點。實質上,我需要僞造觸發樹的打開的點擊事件。 看到和這裏的例子http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_treegrid_model_lazy.html以編程方式展開dojox.TreeGrid中的一棵樹
我有一個簡單的樹形網格,我需要以編程方式展開一行以顯示其子節點。實質上,我需要僞造觸發樹的打開的點擊事件。 看到和這裏的例子http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_treegrid_model_lazy.html以編程方式展開dojox.TreeGrid中的一棵樹
我沒有親自使用的TreeGrid,但是從API文檔,它看起來像你想使用的功能expandoFetch(rowIndex,open)
與open
參數作爲true
:
myTreeGrid.expandoFetch(0,true);