Tree Grid search highlighting throws an error in lazy loaded implementation #6896
Labels
bug
Something isn't working
forum
Issues from forum
large-account
Reported by large customer
OEM
OEM customer
resolved
Fixed but not yet released (available in the nightly builds)
Milestone
Hello,
I have a lazy loaded tree grid where I'm setting the [i]children[/i] property of records to [i]true[/i] to indicate that data will be loaded at a later point. These records are loaded by overriding the [i]loadChildren[/i] function in the store.
Along with the tree grid, I have implemented a searching UI to allow users to search the tree grid for records. Upon searching, I would like to use the https://www.bryntum.com/products/scheduler/docs/api/Grid/feature/Search API to highlight the results. However, when I do this, the search API throws an error:
[attachment=0]Screenshot 2023-05-31 at 11.24.14.png[/attachment]
I have managed to reproduce this in the Bryntum demos using the following code:
[code]
import { TreeGrid, DomHelper, DateHelper, ObjectHelper, DataGenerator } from '../../build/grid.module.js?468078';
import shared from '../_shared/shared.module.js?468078';
class App {
constructor() {
const me = this;
}
const app = window.app = new App();
setTimeout(() => app.grid.features.search.search('child'), 10);
[/code]
Please could you confirm whether this is a bug or if I am using these features incorrectly.
Thank you!
The text was updated successfully, but these errors were encountered: