Skip to content

Commit 7ff88a2

Browse files
refactor(grids): remove deprecated props, fix tests and samples (#13004)
Isolated changes from #12832 Co-authored-by: Desislava Dincheva <[email protected]>
1 parent ddc2929 commit 7ff88a2

26 files changed

+201
-594
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,26 @@
33
All notable changes for each version of this project will be documented in this file.
44

55
## 16.0.0
6-
6+
### Breaking Changes
7+
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
8+
The following grid properties, deprecated since version 12.1.0 are now removed:
9+
- *evenRowCSS*;
10+
- *oddRowCSS*;
11+
- *page*;
12+
- *paging*;
13+
- *perPage*;
14+
- *totalPages*;
15+
- *isFirstPage*;
16+
- *isLastPage*;
17+
- *pageChange*;
18+
Also the following deprecated grid events are removed.
19+
- *perPageChange*;
20+
- *pagingDone*;
21+
Deprecated methods removed from the grid API are:
22+
- *nextPage*;
23+
- *previousPage*;
24+
- *paginate*;
25+
- *getCellByColumnVisibleIndex*;
726
### General
827
- All Ignite UI for Angular components are now exported as `standalone` components. The library still exports `NgModules`, which have been preserved for backward compatibility, but they no longer declare any of the Ignite UI for Angular components, instead they just import and export the `standalone` components. The `standalone` components are still in a preview stage. Some utility directive exports may change in the future and may be missing from the documentation in the initial release, hence the `preview` state of the feature.
928

projects/igniteui-angular/src/lib/grids/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ Below is the list of all inputs that the developers may set to configure the gri
169169
|`autoGenerateExclude`|Array|A list of property keys to be excluded from the generated column collection, default is _[]_|
170170
|`batchEditing`|boolean|Toggles batch editing in the grid, default is _false_|
171171
|`moving`|boolean|Enables the columns moving feature. Defaults to _false_|
172-
|`paging`|boolean|Enables the paging feature. Defaults to _false_.|
173-
|`page`| number | The current page index.|
174-
|`perPage`|number|Visible items per page, default is 15|
175172
|`allowFiltering`| boolean | Enables quick filtering functionality in the grid. |
176173
|`allowAdvancedFiltering`| boolean | Enables advanced filtering functionality in the grid. |
177174
|`filterMode`| `FilterMode` | Determines the filter mode, default value is `quickFilter`.|
@@ -184,8 +181,6 @@ Below is the list of all inputs that the developers may set to configure the gri
184181
|`rowSelectable`|boolean|Enables multiple row selection, default is _false_.|
185182
|`height`|string|The height of the grid element. You can pass values such as `1000px`, `75%`, etc.|
186183
|`width`|string|The width of the grid element. You can pass values such as `1000px`, `75%`, etc.|
187-
|`evenRowCSS`|string|Additional styling classes applied to all even rows in the grid.|
188-
|`oddRowCSS`|string|Additional styling classes applied to all odd rows in the grid.|
189184
|`paginationTemplate`|TemplateRef|You can provide a custom `ng-template` for the pagination part of the grid.|
190185
|`groupStrategy`| IGridGroupingStrategy | Provides custom group strategy to be used when grouping |
191186
|`groupingExpressions`| Array | The group by state of the grid.
@@ -237,7 +232,6 @@ A list of the events emitted by the **igx-grid**:
237232
|`columnInit`|Emitted when the grid columns are initialized. Returns the column object.|
238233
|`sortingDone`|Emitted when sorting is performed through the UI. Returns the sorting expression.|
239234
|`filteringDone`|Emitted when filtering is performed through the UI. Returns the filtering expressions tree of the column for which the filtering was performed.|
240-
|`pagingDone`|Emitted when paging is performed. Returns an object consisting of the previous and the new page.|
241235
|`rowAdded`|Emitted when a row is being added to the grid through the API. Returns the data for the new row object.|
242236
|`rowDeleted`|Emitted when a row is deleted through the grid API. Returns the row object being removed.|
243237
|`dataPreLoad`| Emitted when a new chunk of data is loaded from virtualization. |
@@ -287,9 +281,6 @@ Here is a list of all public methods exposed by **igx-grid**:
287281
|`enableSummaries(expressions: Array)`|Enable summaries for the columns and apply your `customSummary` if it is provided.|
288282
|`disableSummaries(fieldName: string)`|Disable summaries for the specified column.|
289283
|`disableSummaries(columns: string[])`|Disable summaries for the listed columns.|
290-
|`previousPage()`|Goes to the previous page if paging is enabled and the current page is not the first.|
291-
|`nextPage()`|Goes to the next page if paging is enabled and current page is not the last.|
292-
|`paginate(page: number)`|Goes to the specified page if paging is enabled. Page indices are 0 based.|
293284
|`markForCheck()`|Manually triggers a change detection cycle for the grid and its children.|
294285
|`pinColumn(name: string): boolean`|Pins a column by field name. Returns whether the operation is successful.|
295286
|`unpinColumn(name: string): boolean`|Unpins a column by field name. Returns whether the operation is successful.|

projects/igniteui-angular/src/lib/grids/common/grid.interface.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,6 @@ export interface GridType extends IGridDataBindable {
473473
/** @hidden @internal */
474474
dragRowID: any;
475475
rowDragging: boolean;
476-
evenRowCSS: string;
477-
oddRowCSS: string;
478476

479477
firstEditableColumnIndex: number;
480478
lastEditableColumnIndex: number;

projects/igniteui-angular/src/lib/grids/common/pipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class IgxGridRowClassesPipe implements PipeTransform {
116116
_rowData: any,
117117
_: number
118118
) {
119-
const result = new Set(['igx-grid__tr', index % 2 ? row.grid.evenRowCSS : row.grid.oddRowCSS]);
119+
const result = new Set(['igx-grid__tr', index % 2 ? 'igx-grid__tr--even': 'igx-grid__tr--odd']);
120120
const mapping = [
121121
[selected, 'igx-grid__tr--selected'],
122122
[editMode, 'igx-grid__tr--edit'],

0 commit comments

Comments
 (0)