Hey there developers,
I've been experimenting with the angular slickgrid library and attempting to incorporate the rowDetailView feature it offers.
The issue I'm facing is that while I can expand the view by clicking on it, I'm unable to close it. Whenever I try to toggle the rowDetailView open/close, I encounter the following error:
ERROR
core.js:15723
TypeError: Cannot read property 'hostView' of undefined
core.js:15723
message:"Cannot read property 'hostView' of undefined"
stack:"TypeError: Cannot read property 'hostView' of undefined
at RowDetailViewExtension.push../node_modules/angular-slickgrid/fesm5/angular-slickgrid.js.RowDetailViewExtension.onBeforeRowDetailToggle (http://localhost:4200/vendor.js:169190:48)
at RowDetailView.<anonymous> (http://localhost:4200/vendor.js:169026:27)
at Event.notify (http://localhost:4200/vendor.js:357049:35)
...
Below are my gridOptions settings:
this.gridOptions = {
enableAutoResize: true,
enableSorting: true,
...
};
This is the simulateServerAsyncCall() method I'm using:
simulateServerAsyncCall(item: any) {
console.log('this is the item passed to the stimFunc: ' + JSON.stringify(item));
...
}
If you need to access my frontend code, here it is:
<div id="companiesGrid" class="col" style="margin-top:15px">
...
</div>
I'm stuck trying to figure out if I overlooked something or if there's another underlying issue causing this problem.
Appreciate the assistance!