In Salesforce Lightning, the Lightning Tree Grid component offers a powerful way to display hierarchical data with rich features. However, implementing pagination and searching within the Lightning Tree Grid can enhance its usability and efficiency. ...
forcedev.hashnode.dev4 min read
SteveC
Hi - great thank you. I've found one issue when paging through a large amount of filtered data - and that's when using either the nextHandler - or previousHandler - the filtered data resets to the full dataset. One solution is to make filteredItems within the filterData method a class property (this.filteredItems), declare it in the class, replace references of filterData with this.filterData and add this property as the optional parameter of the previousHandler and nextHandler methods.