Skip to content

Commit b933d08

Browse files
authored
Add files via upload
1 parent fb33873 commit b933d08

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
<smart-grid #grid [dataSource]="dataSource" [layout]="layout" [columns]="columns" [selection]=selection [appearance]="appearance" [paging]="paging" [pager]="pager" id="grid"></smart-grid>
2+
<smart-grid #grid [dataSource]="dataSource" [layout]="layout" [columns]="columns" [scrolling]="'infinite'" [selection]=selection [appearance]="appearance" id="grid"></smart-grid>

grid/overview/src/app/app.component.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function GetData(rowscount?: number, last?: number, hasNullValues?: boole
123123

124124

125125
@Component({
126-
selector: 'my-app',
126+
selector: 'app-root',
127127
templateUrl: './app.component.html',
128128
styleUrls: [ './app.component.css' ]
129129
})
@@ -160,7 +160,14 @@ export class AppComponent {
160160
};
161161

162162
dataSource = new Smart.DataAdapter({
163-
dataSource: GetData(1000),
163+
dataSource: GetData(30),
164+
virtualDataSource: function (resultCallbackFunction) {
165+
setTimeout(function () {
166+
resultCallbackFunction({
167+
dataSource: GetData(30)
168+
});
169+
}, 100);
170+
},
164171
dataFields: [
165172
'id: number',
166173
'firstName: string',

0 commit comments

Comments
 (0)