Skip to content

Commit 264f130

Browse files
authored
Merge pull request #9808 from IgniteUI/ddincheva/gridPaging12.1
Change the way igxGrid allows using the igxPaginator
2 parents fc86df8 + 8a064db commit 264f130

File tree

86 files changed

+764
-565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+764
-565
lines changed

CHANGELOG.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,27 @@ All notable changes for each version of this project will be documented in this
6161
```
6262
- `IgxExcelExporterService`
6363
- Added support for exporting the grids' multi-column headers to **Excel**. By default, the multi-column headers would be exported but this behavior can be controlled by the `ignoreMultiColumnHeaders` option off the IgxExcelExporterOptions object.
64-
6564

6665
- `IgxDateTimeEditor`, `IgxMask`, `IgxDatePicker`, `IgxTimePicker`, `IgxDateRangePicker`
6766
- Added IME input support. When typing in an Asian language input, the control will display input method compositions and candidate lists directly in the control’s editing area, and immediately re-flow surrounding text as the composition ends.
6867

6968
### General
69+
- `IgxGridComponent`
70+
- The following properties are deprecated:
71+
- `paging`
72+
- `perPage`
73+
- `page`
74+
- `totalPages`
75+
- `isFirstPage`
76+
- `isLastPage`
77+
- `pageChange`
78+
- `perPageChange`
79+
- `pagingDone`
80+
- The following methods, also are deprecated:
81+
- `nextPage()`
82+
- `previousPage()`
83+
- **Breaking Change** the following property has been removed
84+
- `paginationTemplate`
7085
- `IgxPaginatorComponent`
7186
- Deprecated properties `selectLabel` and `prepositionPage` are now removed;
7287
- **Breaking Change** - the following properties are removed
@@ -76,7 +91,7 @@ All notable changes for each version of this project will be documented in this
7691
- `dropdownHidden`
7792
- `IgxSnackbarComponent`
7893
- Deprecated property `message` is now removed;
79-
- **Breaking Change** - the `snackbarAnimationStarted` and `snackbarAnimationDone` methods are now removed. The `animationStarted` and `animationDone` events now provide reference to the `ToggleViewEventArgs` interface as an argument and are emitted by the `onOpened` and `onClosed` events of the `IgxToggleDirective`.
94+
- **Breaking Change** - the `snackbarAnimationStarted` and `snackbarAnimationDone` methods are now removed. The `animationStarted` and `animationDone` events now provide reference to the `ToggleViewEventArgs` interface as an argument and are emitted by the `onOpened` and `onClosed` events of the `IgxToggleDirective`.
8095
- `IgxToastComponent`
8196
- Deprecated property `message` is now removed;
8297
- **Breaking Change** - The `isVisibleChange` event now provides reference to the `ToggleViewEventArgs` interface as an argument.

projects/igniteui-angular/src/lib/core/deprecateDecorators.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function DeprecateMethod(message: string): MethodDecorator {
3434
for (const x of arguments) {
3535
args.push(x);
3636
}
37-
return originalMethod.call(this, args);
37+
return originalMethod.call(this, ...args);
3838
};
3939

4040
return descriptor;

projects/igniteui-angular/src/lib/grids/filtering/grid-filtering.service.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ export class IgxFilteringService implements OnDestroy {
253253
const grid = this.grid;
254254
const filteringTree = grid.filteringExpressionsTree;
255255
grid.crudService.endEdit(false);
256-
if (grid.paging) {
257-
grid.page = 0;
256+
if (grid.paginator) {
257+
grid.paginator.page = 0;
258258
}
259259

260260
filteringTree.filteringOperands = [];
@@ -346,8 +346,8 @@ export class IgxFilteringService implements OnDestroy {
346346
}
347347

348348
this.grid.crudService.endEdit(false);
349-
if (grid.paging) {
350-
grid.page = 0;
349+
if (grid.paginator) {
350+
grid.paginator.page = 0;
351351
}
352352
grid.filteringExpressionsTree = newFilteringTree;
353353

@@ -560,8 +560,8 @@ export class IgxFilteringService implements OnDestroy {
560560
const filteringTree = grid.filteringExpressionsTree;
561561
this.grid.crudService.endEdit(false);
562562

563-
if (grid.paging) {
564-
grid.page = 0;
563+
if (grid.paginator) {
564+
grid.paginator.page = 0;
565565
}
566566

567567
const fieldFilterIndex = filteringTree.findIndex(fieldName);

0 commit comments

Comments
 (0)