ngAfterViewChecked() { $("#myGrid").ejGrid("windowonresize"); } |
I get this error:
core.umd.js?e2a5:3468 TypeError: Cannot read property 'width' of null at Object.windowonresize (http://localhost:3000/node_modules/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:3087552) |
Second one, of I call windowsonresize manually, it works reaaaaaaaly slow. Any ideas?
[Index.html]
<head>
<title>Essential JavaScript for Angular 2</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='nofollow' href="node_modules/syncfusion-javascript/Content/ej/web/default-theme/ej.web.all.min.css" rel="stylesheet" />
<link rel='nofollow' href="node_modules/syncfusion-javascript/Content/ej/web/responsive-css/ejgrid.responsive.css" rel="stylesheet" />
. . .
</head>
[app.component.html]
<ej-grid [allowPaging]="true" [isResponsive]="true" [minWidth]="600">
. . .
</ej-grid>
|
this.scrollSettings = { height : "100%", width: "100%", allowVirtualScrolling: true, virtualScrollMode: "normal" }; this.pageSettings = { pageSize: 100 }; |
this.scrollSettings = { height : "100%", width: "100%", enableVirtualization: true }; |
this.scrollSettings = { height : "500", width: "100%", enableVirtualization: true }; |