Kendo Ui Angular2 Grid 分页到第一页
Kendo Ui Angular2 Grid Paging to first page
我的网格只有几页,
当我刷新数据时,我想通过代码回到第一个网格页面。
我的网格:
<div class="chapterContent">
<div class="row k-rtl clearfix">
<kendo-grid [data]="gridView"
[pageSize]="pageSize"
[skip]="skip"
[pageable]="{
buttonCount: buttonCount,
info: info,
type: type,
previousNext: previousNext
}"
[scrollable]="'none'"
[height]="260"
[rowHeight]="36"
(pageChange)="pageChange($event)"
[selectable]="true"
(selectionChange)="onSelectChange($event)" >
<kendo-grid-column field="CHAPTER_DESCRIPTION" title="mmm" width="10" headerClass="sectionTitle">
</kendo-grid-column>
<kendo-grid-column field="LineBasicSum" title="סכום" width="10" headerClass="sectionTitle">
</kendo-grid-column>
<kendo-grid-column field="WORK_TYPE_DESCRIPTION" title="mmm" headerClass="sectionTitle" width="10">
</kendo-grid-column>
<!--<kendo-grid-column title="mmm" width="10">
<template kendoCellTemplate let-dataItem let-rowIndex="rowIndex">
<button class="btnLink" (click)="onChapterClick(dataItem)" title="פצל"><span class="glyphicon glyphicon-import" aria-hidden="true"></span></button>
</template>
</kendo-grid-column>-->
</kendo-grid>
</div>
</div>
如何return到第一个网格页面?
谢谢,
看你是怎么实现分页的,一般来说应该是这样的:
public onClick() {
this.pageChange({skip: 0})
}
我的网格只有几页, 当我刷新数据时,我想通过代码回到第一个网格页面。
我的网格:
<div class="chapterContent">
<div class="row k-rtl clearfix">
<kendo-grid [data]="gridView"
[pageSize]="pageSize"
[skip]="skip"
[pageable]="{
buttonCount: buttonCount,
info: info,
type: type,
previousNext: previousNext
}"
[scrollable]="'none'"
[height]="260"
[rowHeight]="36"
(pageChange)="pageChange($event)"
[selectable]="true"
(selectionChange)="onSelectChange($event)" >
<kendo-grid-column field="CHAPTER_DESCRIPTION" title="mmm" width="10" headerClass="sectionTitle">
</kendo-grid-column>
<kendo-grid-column field="LineBasicSum" title="סכום" width="10" headerClass="sectionTitle">
</kendo-grid-column>
<kendo-grid-column field="WORK_TYPE_DESCRIPTION" title="mmm" headerClass="sectionTitle" width="10">
</kendo-grid-column>
<!--<kendo-grid-column title="mmm" width="10">
<template kendoCellTemplate let-dataItem let-rowIndex="rowIndex">
<button class="btnLink" (click)="onChapterClick(dataItem)" title="פצל"><span class="glyphicon glyphicon-import" aria-hidden="true"></span></button>
</template>
</kendo-grid-column>-->
</kendo-grid>
</div>
</div>
如何return到第一个网格页面?
谢谢,
看你是怎么实现分页的,一般来说应该是这样的:
public onClick() {
this.pageChange({skip: 0})
}