Posted 27 May 2018, 11:50 pm EST
Hi,
I am having treeview which loads data using lazyload function. I checked the thread https://www.grapecity.com/en/forums/wijmo/is-there-any-method-to-tri_1, but it shows how to reset data to empty, so data can be fetched on next click event.
I am trying to reset the data and expand the selected node so data can be fetched as soon as we set it to blank.
If I try to explicitly invoke click event then it doesn’t do anything. If I manually click on node, then it fetch data as expected. I am using below code for this.
```
const tv = node.treeView;
node.setCollapsed(true, false, true);
node.dataItem[‘items’] = ;
tv.loadTree(true);
node.element.click();
Please let me know if you need any additional information.