0

我想按需加载数据,但我真的看不到在任何类型的这些事件上滚动滚动的可能性。如何实现依赖滚动的数据自定义加载?

<dx-data-grid id="gridContainer"
              [remoteOperations]="true"
              [allowColumnResizing]="true"
              [columnAutoWidth]="true"
              [columnMinWidth]="75"
              [dataSource]="dataSource | async"
              (onContentReady)="onContentReady($event)">
  <dxo-scrolling mode="virtual" rowRenderingMode="virtual"></dxo-scrolling>
  <dxo-load-panel [enabled]="true"></dxo-load-panel>
  <dxo-paging [pageSize]="100"></dxo-paging>

  <div *ngFor="let col of columns;">
    <dxi-column dataField="{{col.dataField}}"
                caption="{{col.caption | translate }}"
                cellTemplate="dateTimeCellTemplate"
                [alignment]="'left'"
                [allowFiltering]="true"
                *ngIf="col.dataField == 'eventAt'; else elseBlock"
                (sortOrderChange)="customSortingFunction($event)"
                [sortOrder]="'desc'">
    </dxi-column>
    <div *dxTemplate="let cellData of 'dateTimeCellTemplate'">
      {{cellData.text | dateFormat: 'MM/DD/YYYY HH:MM:SS'}}
    </div>

    <ng-template #elseBlock>
      <dxi-column dataField="{{col.dataField}}"
                  caption="{{col.caption | translate}}"
                  [alignment]="'left'"
                  [allowSorting]="false"
                  [allowSearch]="true">
      </dxi-column>
    </ng-template>
  </div>
</dx-data-grid>
4

0 回答 0