We've confirmed that the issue is fixed on the latest nightly builds.
Thanks for your response.
Announcement
Collapse
No announcement yet.
X
-
We have just committed a fix for this issue, will be present in 14.x and 15.0 builds as of tomorrow (builds dated March 19 and later). Please try with your use case and let us know if you still see any issues
Leave a comment:
-
14.1 TreeGrid fetchMode and keepParentsOnFilter
Hi,
Using SmartGWT 14.1p-20250310, we're observing what we think is a defect in the behaviour of TreeGrid filtering.
Code:TreeGrid grid = new TreeGrid(); grid.setDataSource("Content"); grid.setAutoFetchData(true); grid.setDataFetchMode(FetchMode.PAGED); grid.setKeepParentsOnFilter(true); grid.addCellClickHandler(event -> { grid.filterData(new AdvancedCriteria("parentId", OperatorId.EQUALS, 1L)); });
If FetchMode is explicitly set to "paged", it is not possible to implement keepParentsOnFilter by local filtering. Support for keepParentsOnFilter for a paged ResultTree therefore also requires custom logic in the DataSource fetch operation. To support this a developer must ensure that their fetch operation returns the appropriate set of nodes - all nodes that match the specified criteria plus their ancestor nodes even if they do not match the specified criteria.
We've tracked down this change in resultTree.init() in ISC_DataBinding.js:
13.0
Code:if (this.keepParentsOnFilter && !(this.isPaged() || this.isLocal())) { this.fetchMode = "local"; }
Code:if (this.keepParentsOnFilter //>ISC_140 && !this.shouldCacheSkeleton() //<ISC_140 ) { this.fetchMode = "local"; }
Tags: None
Leave a comment: