The performance of the Dropdown Tree when autoCheck is selected it very poor.
I have created an example where there are over 2000 items in the Dropdown Tree with 5 levels of nesting. When checking one of the root nodes it takes between 3-10 seconds for the item to be selected.
See https://stackblitz.com/edit/angular-cj5z89?file=app.component.ts
Shalini,
Thank you very much. I will test against the latest version.
Was this performance issue already known and fixed prior to me submitting a forum post?
Still having performance issues with the Dropdown Tree.
When the component is destroyed it can take up to 10 seconds for browser to respond again, it jams right up.
This is because the underlying TreeView is being "unchecked" for each item when the Dropdown Tree is destroyed.
Demo: Angular (forked) (stackblitz.com)
In the demo I have setup the dropdown to be destroyed after an item is selected. You can then see the timing of the destroy method as:
Started destroy 2021-07-22T05:21:27.844Z
Finished destroy 2021-07-22T05:21:36.201Z
This is 9 seconds to destroy!
See the EJ2 source code:
controls/navigations/src/treeview/treeview.ts
and
controls/dropdowns/src/drop-down-tree/drop-down-tree.ts
My temporary workaround is before destroying the parent component to run this code:
ngOnDestroy() {
// Temporary fix to speed up the destroy of the dropdown
;(this.dropdown as any).treeObj.showCheckBox = false
this.dropdown.destroy()
}
This tells the underlying TreeView not to show CheckBoxes and thus to not "uncheck" each item on destroy.
When I use Select/All unselect all in the dropdown tree, with filtering, the browser hangs for up to 30 secs.
Anything on this please ? When I try to use the unselect all checkbox in a dropdrown tree, the browser seems to hang for about 20-30 seconds. I have a tree of about 30 - 40 nodes with sub trees.
Hi Sriram,
We have improved the performance related issues while performing Select All/Unselect All operations on the Dropdown Tree component in 20.4.49 version. Check out the below release notes.
https://ej2.syncfusion.com/angular/documentation/release-notes/20.4.49/?type=all#dropdown-tree
So we suggest you to once update the packages to latest version. For your reference, we have attached a sample.
Check out the shared sample and get back to us if you need any further assistance.
Regards,
Indhumathy L
We need autoCheck with filtering .. I believe DropdownTree is not allowing this currently .. when will this be addressed ?
Sriram, We have already considered this requirement as a feature request on our end. But we do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features. Usually, Syncfusion will plan and implement the features based on feature rank, customer requested count, and volume wish-list. We will let you know when this feature is implemented.
The status of implementation can be tracked through the below portal link: