I'm having a hard time getting enablePersistence working on ej-grid (EJS-1). Here's the grid code:
<ej-grid id="Grid"
#changeGrid
[enablePersistence]="true"
[dataSource]="data"
[allowResizing]="true"
[allowResizeToFit]="true"
[isResponsive]="true"
[enableResponsiveRow]="true"
(rowSelected)="navigate($event)"
[allowFiltering]="true"
[filterSettings]="filterType"
[allowSorting]="true"
selectionType="multiple"
[selectionSettings]="selectionMode"
[allowPaging]="true"
[pageSettings]="{'pageSize':15}">
....COLUMNS
</ej-grid>
When I load the page for the first time, it normally works. That's the last time it works though. After page change or refresh, it will throw console errors and the table will not load:
- "TypeError: Cannot read property 'nodeType' of undefined"
- "TypeError: Cannot read property 'model' of undefined"
When I remove [enablePersistence]="true" from the above grid, it immediately starts working again. I've tried this same setup on multiple grids.
I upgraded the EJ packages to see if that would fix the problem but there are no changes so far:
"@types/ej.web.all": "^16.1.1",
"ej-angular2": "^16.1.26",
"syncfusion-javascript": "^16.1.32",
Is there an example showing persistence working while pages change?