开发者

programmatically expand a tree inside a dojox.TreeGrid

开发者 https://www.devze.com 2023-04-12 05:23 出处:网络
I have a simple tree grid and i need to programmatically expand a row to show its children. In essence i need to fake the click event that triggers the opening of the tree.

I have a simple tree grid and i need to programmatically expand a row to show its children. In essence i need to fake the click event that triggers the opening of the tree. see and example here http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test_treegrid_model_lazy.ht开发者_如何转开发ml


I haven't personally used the TreeGrid, but from the API docs, it looks like you want to use the expandoFetch(rowIndex,open) function with the open parameter as true:

myTreeGrid.expandoFetch(0,true);

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号