igniteui-cli 15.5.1 → 15.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/templates/blazor/igb/projects/ai-config/files/skills/AGENTS.md +6 -3
- package/templates/blazor/igb/projects/ai-config/files/skills/README.md +30 -45
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/SKILL.md +48 -96
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/charts.md +61 -238
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/data-display.md +60 -193
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/feedback.md +36 -92
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/form-controls.md +66 -224
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/layout-manager.md +39 -88
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/layout.md +75 -152
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/setup.md +40 -149
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-generate-from-image-design/SKILL.md +58 -243
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-generate-from-image-design/references/component-mapping.md +89 -280
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-generate-from-image-design/references/gotchas.md +143 -431
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/SKILL.md +91 -157
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/data-operations.md +50 -228
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/editing.md +61 -222
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/features.md +67 -360
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/grid-migration.md +55 -236
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/paging-remote.md +53 -202
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/sizing.md +31 -232
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/state.md +27 -119
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/structure.md +88 -363
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/types.md +87 -415
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-lite-testing/SKILL.md +8 -4
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-lite-testing/references/interop-contracts.md +42 -6
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-theming/SKILL.md +83 -211
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-theming/references/common-patterns.md +93 -184
- package/templates/react/igr-ts/projects/ai-config/files/skills/README.md +30 -83
- package/templates/react/igr-ts/projects/ai-config/files/skills/grid-lite-to-igr-grid-migration/SKILL.md +98 -191
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/SKILL.md +38 -147
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/COMPONENTS.md +65 -0
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/DATAVIZ.md +90 -0
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/MCP.md +43 -0
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/TROUBLESHOOTING.md +17 -145
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/USAGE.md +85 -0
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-customize-theme/SKILL.md +83 -135
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-customize-theme/reference/CSS-THEMING.md +51 -218
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-generate-from-image-design/SKILL.md +58 -187
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-generate-from-image-design/reference/gotchas.md +55 -154
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-optimize-bundle-size/SKILL.md +48 -401
- package/templates/webcomponents/igc-ts/constants.d.ts +5 -5
- package/templates/webcomponents/igc-ts/constants.js +5 -5
- package/templates/webcomponents/igc-ts/projects/_base/files/package.json +1 -1
- package/templates/webcomponents/igc-ts/projects/_base_with_home/files/package.json +6 -6
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-components/references/mcp-setup.md +0 -78
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-grids/references/mcp-setup.md +0 -78
- package/templates/blazor/igb/projects/ai-config/files/skills/igniteui-blazor-theming/references/mcp-setup.md +0 -81
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/CHARTS-GRIDS.md +0 -398
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/COMPONENT-CATALOGUE.md +0 -161
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/EVENT-HANDLING.md +0 -72
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/INSTALLATION.md +0 -139
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/JSX-PATTERNS.md +0 -187
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/MCP-SERVER.md +0 -77
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-components/reference/REFS-FORMS.md +0 -232
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-customize-theme/reference/MCP-SERVER.md +0 -67
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-customize-theme/reference/TROUBLESHOOTING.md +0 -35
- package/templates/react/igr-ts/projects/ai-config/files/skills/igniteui-react-generate-from-image-design/reference/component-mapping.md +0 -132
|
@@ -1,137 +1,79 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
> **Part of the [`igniteui-blazor-grids`](../SKILL.md) skill hub.**
|
|
4
|
-
> For `IgbGrid` setup and column configuration — see [`structure.md`](./structure.md).
|
|
5
|
-
> For specialized grid types including `IgbGridLite` — see [`types.md`](./types.md).
|
|
6
|
-
> For cell and row editing after migration — see [`editing.md`](./editing.md).
|
|
7
|
-
|
|
8
|
-
## Contents
|
|
9
|
-
|
|
10
|
-
- [When to Migrate from Grid Lite to IgbGrid](#when-to-migrate-from-grid-lite-to-igbgrid)
|
|
11
|
-
- [Setup](#setup)
|
|
12
|
-
- [Minimal Migration Example](#minimal-migration-example)
|
|
13
|
-
- [Component and API Changes](#component-and-api-changes)
|
|
14
|
-
- [Cell Templates](#cell-templates)
|
|
15
|
-
- [Header Templates](#header-templates)
|
|
16
|
-
- [Remote Data](#remote-data)
|
|
17
|
-
- [Programmatic Sort / Filter](#programmatic-sort--filter)
|
|
18
|
-
- [Common Enterprise Features](#common-enterprise-features)
|
|
19
|
-
- [Cleanup After Migration](#cleanup-after-migration)
|
|
20
|
-
- [Key Rules](#key-rules)
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## When to Migrate from Grid Lite to IgbGrid
|
|
25
|
-
|
|
26
|
-
Migrate when you need any of the following features (not available in `IgbGridLite`):
|
|
27
|
-
|
|
28
|
-
| Feature | Grid Lite | Premium Grid (`IgbGrid`) |
|
|
29
|
-
|---|---|---|
|
|
30
|
-
| Cell editing | ✗ | ✓ `Editable` on column, `RowEditable` on grid |
|
|
31
|
-
| Batch editing (with undo) | ✗ | ✗ (not supported in Blazor) |
|
|
32
|
-
| Row adding / deleting | ✗ | ✓ `RowEditable` + `IgbActionStrip` |
|
|
33
|
-
| Row selection | ✗ | ✓ `RowSelection="GridSelectionMode.Single|Multiple"` |
|
|
34
|
-
| Cell selection | ✗ | ✓ `CellSelection` |
|
|
35
|
-
| Column selection | ✗ | ✓ `ColumnSelection` |
|
|
36
|
-
| Paging | ✗ | ✓ `IgbPaginator` child |
|
|
37
|
-
| GroupBy | ✗ | ✓ `GroupingExpressions` (IgbGrid only) |
|
|
38
|
-
| Column summaries | ✗ | ✓ `HasSummary` on `IgbColumn` |
|
|
39
|
-
| Column pinning | ✗ | ✓ `Pinned` on `IgbColumn` |
|
|
40
|
-
| Column moving | ✗ | ✓ `Moving="true"` on grid |
|
|
41
|
-
| Master-detail rows | ✗ | ✓ `IgbGrid` row expansion |
|
|
42
|
-
| Excel / CSV export (toolbar) | ✗ | ✓ `IgbGridToolbarExporter` |
|
|
43
|
-
| Column hiding toolbar | ✗ | ✓ `IgbGridToolbarHiding` |
|
|
44
|
-
| Column pinning toolbar | ✗ | ✓ `IgbGridToolbarPinning` |
|
|
45
|
-
| Advanced filtering UI | ✗ | ✓ `IgbGridToolbarAdvancedFiltering` |
|
|
46
|
-
| State persistence | ✗ | ✓ `IgbGridState` |
|
|
47
|
-
| Clipboard operations | ✗ | ✓ `ClipboardOptions` |
|
|
48
|
-
| Action strip | ✗ | ✓ `IgbActionStrip` |
|
|
49
|
-
| Row drag and drop | ✗ | ✓ `RowDraggable="true"` |
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## Setup
|
|
54
|
-
|
|
55
|
-
### 1. Replace the NuGet package registration
|
|
1
|
+
# Migrating `IgbGridLite` → `IgbGrid`
|
|
56
2
|
|
|
57
|
-
|
|
58
|
-
// Remove:
|
|
59
|
-
builder.Services.AddIgniteUIBlazor(typeof(IgbGridLiteModule));
|
|
3
|
+
Grid Lite is read-only by design. When the app outgrows it, the upgrade target is always `IgbGrid` — never a different component.
|
|
60
4
|
|
|
61
|
-
|
|
62
|
-
builder.Services.AddIgniteUIBlazor(typeof(IgbGridModule));
|
|
63
|
-
```
|
|
5
|
+
## What you gain
|
|
64
6
|
|
|
65
|
-
|
|
7
|
+
Everything below is unavailable in Grid Lite and available in `IgbGrid`: cell and row editing (`Editable`, `RowEditable`), row adding/deleting, row/cell/column selection, paging (`IgbPaginator`), grouping, summaries (`HasSummary`), column pinning and moving, master-detail rows, toolbar with column hiding/pinning/advanced filtering, Excel and CSV export, state persistence (`IgbGridState`), clipboard options, action strip, and row drag-and-drop.
|
|
66
8
|
|
|
67
|
-
|
|
68
|
-
<!-- Remove: -->
|
|
69
|
-
<link href="_content/IgniteUI.Blazor.GridLite/css/themes/light/bootstrap.css" rel="stylesheet" />
|
|
70
|
-
|
|
71
|
-
<!-- Add: -->
|
|
72
|
-
<link href="_content/IgniteUI.Blazor/themes/light/bootstrap.css" rel="stylesheet" />
|
|
73
|
-
<link href="_content/IgniteUI.Blazor/themes/grid/light/bootstrap.css" rel="stylesheet" />
|
|
74
|
-
```
|
|
9
|
+
Batch editing with undo is not supported in Blazor on either grid.
|
|
75
10
|
|
|
76
|
-
|
|
11
|
+
## Setup changes
|
|
77
12
|
|
|
78
|
-
|
|
13
|
+
```csharp
|
|
14
|
+
// Program.cs
|
|
15
|
+
- builder.Services.AddIgniteUIBlazor(typeof(IgbGridLiteModule));
|
|
16
|
+
+ builder.Services.AddIgniteUIBlazor(typeof(IgbGridModule));
|
|
17
|
+
```
|
|
79
18
|
|
|
80
|
-
```
|
|
81
|
-
|
|
19
|
+
```html
|
|
20
|
+
<!-- index.html / App.razor — Grid Lite ships one stylesheet, IgbGrid needs two -->
|
|
21
|
+
- <link href="_content/IgniteUI.Blazor.GridLite/css/themes/light/bootstrap.css" rel="stylesheet" />
|
|
22
|
+
+ <link href="_content/IgniteUI.Blazor/themes/light/bootstrap.css" rel="stylesheet" />
|
|
23
|
+
+ <link href="_content/IgniteUI.Blazor/themes/grid/light/bootstrap.css" rel="stylesheet" />
|
|
82
24
|
```
|
|
83
25
|
|
|
84
|
-
|
|
26
|
+
`_Imports.razor` is unchanged — `IgniteUI.Blazor.Controls` covers both.
|
|
85
27
|
|
|
86
|
-
##
|
|
28
|
+
## Markup changes
|
|
87
29
|
|
|
88
30
|
```razor
|
|
89
|
-
|
|
31
|
+
@* Before *@
|
|
90
32
|
<IgbGridLite TItem="Product" Data="@products">
|
|
91
33
|
<IgbGridLiteColumn Field="Name" Header="Name" DataType="GridLiteColumnDataType.String" Sortable Filterable Resizable />
|
|
92
34
|
<IgbGridLiteColumn Field="Price" Header="Price" DataType="GridLiteColumnDataType.Number" />
|
|
93
35
|
</IgbGridLite>
|
|
94
36
|
|
|
95
|
-
|
|
37
|
+
@* After *@
|
|
96
38
|
<IgbGrid @ref="grid" Data="@products" PrimaryKey="Id" AutoGenerate="false"
|
|
97
39
|
Width="100%" Height="600px" AllowFiltering="true">
|
|
98
|
-
<IgbColumn Field="Name" Header="Name" DataType="GridColumnDataType.String"
|
|
40
|
+
<IgbColumn Field="Name" Header="Name" DataType="GridColumnDataType.String"
|
|
41
|
+
Sortable="true" Filterable="true" Resizable="true" />
|
|
99
42
|
<IgbColumn Field="Price" Header="Price" DataType="GridColumnDataType.Number" Sortable="true" />
|
|
100
43
|
</IgbGrid>
|
|
101
44
|
|
|
102
45
|
@code {
|
|
103
46
|
private IgbGrid grid = default!;
|
|
104
|
-
private List<Product> products = new();
|
|
105
47
|
}
|
|
106
48
|
```
|
|
107
49
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
50
|
+
Four things must be added that Grid Lite had no equivalent for:
|
|
51
|
+
|
|
52
|
+
- **`PrimaryKey`** — required for editing, selection, row-targeted APIs, and `IgbActionStrip`.
|
|
53
|
+
- **`Height`** — required for row virtualization.
|
|
54
|
+
- **`AllowFiltering="true"` on the grid** — Grid Lite needed only `Filterable` per column; `IgbGrid` needs the grid-level switch too.
|
|
55
|
+
- **`@ref`** — for any programmatic API call.
|
|
113
56
|
|
|
114
|
-
|
|
57
|
+
Also note the boolean attributes: Grid Lite accepts bare `Sortable`, `IgbColumn` wants `Sortable="true"`.
|
|
115
58
|
|
|
116
|
-
##
|
|
59
|
+
## Rename table
|
|
117
60
|
|
|
118
|
-
| Grid Lite |
|
|
61
|
+
| Grid Lite | `IgbGrid` |
|
|
119
62
|
|---|---|
|
|
120
63
|
| `IgbGridLite` | `IgbGrid` |
|
|
121
64
|
| `IgbGridLiteColumn` | `IgbColumn` |
|
|
122
|
-
| `GridLiteColumnDataType` | `GridColumnDataType` |
|
|
123
65
|
| `IgbGridLiteModule` | `IgbGridModule` |
|
|
66
|
+
| `GridLiteColumnDataType` | `GridColumnDataType` |
|
|
124
67
|
| `IgbGridLiteSortingExpression` | `IgbSortingExpression` |
|
|
125
68
|
| `IgbGridLiteFilterExpression` | `IgbFilteringExpression` |
|
|
126
|
-
|
|
|
127
|
-
| `
|
|
128
|
-
| No `PrimaryKey` | `PrimaryKey` required for most features |
|
|
69
|
+
| `IgbGridLiteSortingOptions` | `IgbSortingOptions` |
|
|
70
|
+
| `Key` in sort/filter expressions | `FieldName` |
|
|
129
71
|
|
|
130
|
-
|
|
72
|
+
`TItem` stays as-is.
|
|
131
73
|
|
|
132
|
-
##
|
|
74
|
+
## Templates
|
|
133
75
|
|
|
134
|
-
Grid Lite has no
|
|
76
|
+
Grid Lite has no templates at all. `IgbColumn` adds Blazor render fragments — not callbacks or delegates:
|
|
135
77
|
|
|
136
78
|
```razor
|
|
137
79
|
<IgbColumn Field="Status" Header="Status">
|
|
@@ -142,143 +84,38 @@ Grid Lite has no cell templates. In `IgbGrid`, use the `BodyTemplate` render fra
|
|
|
142
84
|
}
|
|
143
85
|
<span style="color: @(status == "Active" ? "green" : "red")">@status</span>
|
|
144
86
|
</BodyTemplate>
|
|
145
|
-
</IgbColumn>
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
| | Grid Lite | Premium Grid |
|
|
149
|
-
|---|---|---|
|
|
150
|
-
| Cell template | Not supported | `BodyTemplate` render fragment |
|
|
151
|
-
| Cell value | — | `((IgbCellTemplateContext)context).Cell.Value` |
|
|
152
|
-
| Row data | — | `((IgbCellTemplateContext)context).Cell.Row.Data` |
|
|
153
|
-
| Edit template | — | `InlineEditorTemplate` render fragment |
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## Header Templates
|
|
158
|
-
|
|
159
|
-
Grid Lite has no header templates. In `IgbGrid`, use the `HeaderTemplate` render fragment:
|
|
160
|
-
|
|
161
|
-
```razor
|
|
162
|
-
<IgbColumn Field="Price" Header="Price">
|
|
163
87
|
<HeaderTemplate>
|
|
164
88
|
<strong>@((context as IgbColumnTemplateContext)?.Column.Header)</strong>
|
|
165
89
|
</HeaderTemplate>
|
|
166
90
|
</IgbColumn>
|
|
167
91
|
```
|
|
168
92
|
|
|
169
|
-
|
|
93
|
+
Row data inside a body template is `cell.Cell.Row.Data`. Editors use `InlineEditorTemplate` bound to `cell.Cell.EditValue`. Full detail in [`structure.md`](./structure.md) and [`editing.md`](./editing.md).
|
|
170
94
|
|
|
171
|
-
## Remote
|
|
95
|
+
## Remote data
|
|
96
|
+
|
|
97
|
+
Grid Lite drives server-side work through `DataPipelineConfiguration`. `IgbGrid` uses events instead — handle `SortingDone` / `FilteringDone` / `PageChange` and reload `Data` yourself:
|
|
172
98
|
|
|
173
|
-
For server-side sort/filter, handle the `SortingDone` / `FilteringDone` events to reload data:
|
|
174
99
|
```razor
|
|
175
100
|
<IgbGrid @ref="grid" Data="@data" PrimaryKey="Id" Height="600px"
|
|
176
|
-
SortingDone="OnSortingDone" FilteringDone="OnFilteringDone"
|
|
177
|
-
</IgbGrid>
|
|
101
|
+
SortingDone="OnSortingDone" FilteringDone="OnFilteringDone" />
|
|
178
102
|
|
|
179
103
|
@code {
|
|
180
|
-
private IgbGrid grid = default!;
|
|
181
|
-
private List<MyItem> data = new();
|
|
182
|
-
|
|
183
|
-
|
|
184
104
|
private async Task OnSortingDone(IgbSortingExpressionEventArgs args)
|
|
185
105
|
{
|
|
186
106
|
data = await DataService.SortAsync(args.Detail);
|
|
187
107
|
StateHasChanged();
|
|
188
108
|
}
|
|
189
|
-
|
|
190
|
-
private async Task OnFilteringDone(IgbFilteringExpressionsTreeEventArgs args)
|
|
191
|
-
{
|
|
192
|
-
data = await DataService.FilterAsync(args.Detail);
|
|
193
|
-
StateHasChanged();
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
---
|
|
199
|
-
|
|
200
|
-
## Programmatic Sort / Filter
|
|
201
|
-
|
|
202
|
-
```razor
|
|
203
|
-
@code {
|
|
204
|
-
private IgbGrid grid = default!;
|
|
205
|
-
|
|
206
|
-
// Sort
|
|
207
|
-
private async Task SortByName()
|
|
208
|
-
{
|
|
209
|
-
await grid.SortAsync(new IgbSortingExpression[]
|
|
210
|
-
{
|
|
211
|
-
new IgbSortingExpression { FieldName = "Name", Dir = SortingDirection.Asc }
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
private async Task ClearSorting() => await grid.ClearSortAsync();
|
|
216
|
-
|
|
217
|
-
// Filter
|
|
218
|
-
private void FilterActive()
|
|
219
|
-
{
|
|
220
|
-
var tree = new IgbFilteringExpressionsTree() { Operator = FilteringLogic.And };
|
|
221
|
-
tree.FilteringOperands = new IgbFilteringExpression[]
|
|
222
|
-
{
|
|
223
|
-
new IgbFilteringExpression { FieldName = "IsActive", ConditionName = "true", SearchVal = true }
|
|
224
|
-
};
|
|
225
|
-
grid.FilteringExpressionsTree = tree;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
private async Task ClearFilters() => await grid.ClearFilterAsync();
|
|
229
|
-
}
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
> In Grid Lite, sort/filter expressions used a `Key` property. In `IgbGrid`, use `FieldName`.
|
|
233
|
-
|
|
234
|
-
---
|
|
235
|
-
|
|
236
|
-
## Common Enterprise Features
|
|
237
|
-
|
|
238
|
-
### Editing
|
|
239
|
-
|
|
240
|
-
```razor
|
|
241
|
-
<IgbGrid Data="@data" PrimaryKey="Id" RowEditable="true" Height="600px">
|
|
242
|
-
<IgbColumn Field="Name" Editable="true" />
|
|
243
|
-
<IgbColumn Field="Price" Editable="true" DataType="GridColumnDataType.Number" />
|
|
244
|
-
</IgbGrid>
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
See [`editing.md`](./editing.md) for cell editing, row editing, validation, and custom editors.
|
|
248
|
-
|
|
249
|
-
### Row Selection
|
|
250
|
-
|
|
251
|
-
```razor
|
|
252
|
-
<IgbGrid Data="@data" PrimaryKey="Id" RowSelection="GridSelectionMode.Multiple" Height="600px">
|
|
253
|
-
<IgbColumn Field="Name" />
|
|
254
|
-
</IgbGrid>
|
|
255
|
-
|
|
256
|
-
@code {
|
|
257
|
-
// Read selected rows via grid.SelectedRows
|
|
258
109
|
}
|
|
259
110
|
```
|
|
260
111
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
```razor
|
|
264
|
-
<IgbGrid Data="@data" PrimaryKey="Id" Height="600px">
|
|
265
|
-
<IgbPaginator PerPage="15" />
|
|
266
|
-
<IgbColumn Field="Name" />
|
|
267
|
-
</IgbGrid>
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
See [`paging-remote.md`](./paging-remote.md) for remote paging and paginator configuration.
|
|
271
|
-
|
|
272
|
-
### Summaries
|
|
112
|
+
See [`paging-remote.md`](./paging-remote.md) for the combined paging + sorting + filtering pattern.
|
|
273
113
|
|
|
274
|
-
|
|
275
|
-
<IgbColumn Field="Price" DataType="GridColumnDataType.Number" HasSummary="true" />
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
### Toolbar + Export
|
|
114
|
+
## Enabling the new features
|
|
279
115
|
|
|
280
116
|
```razor
|
|
281
|
-
<IgbGrid Data="@data" PrimaryKey="Id" Height="600px"
|
|
117
|
+
<IgbGrid Data="@data" PrimaryKey="Id" Height="600px"
|
|
118
|
+
RowEditable="true" RowSelection="GridSelectionMode.Multiple">
|
|
282
119
|
<IgbGridToolbar>
|
|
283
120
|
<IgbGridToolbarTitle>Products</IgbGridToolbarTitle>
|
|
284
121
|
<IgbGridToolbarActions>
|
|
@@ -288,35 +125,17 @@ See [`paging-remote.md`](./paging-remote.md) for remote paging and paginator con
|
|
|
288
125
|
<IgbGridToolbarExporter ExportExcel="true" ExportCSV="true" />
|
|
289
126
|
</IgbGridToolbarActions>
|
|
290
127
|
</IgbGridToolbar>
|
|
291
|
-
<IgbColumn Field="Name" />
|
|
292
|
-
<IgbColumn Field="Price" />
|
|
128
|
+
<IgbColumn Field="Name" Editable="true" />
|
|
129
|
+
<IgbColumn Field="Price" Editable="true" DataType="GridColumnDataType.Number" HasSummary="true" />
|
|
130
|
+
<IgbPaginator PerPage="15" />
|
|
293
131
|
</IgbGrid>
|
|
294
132
|
```
|
|
295
133
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
---
|
|
299
|
-
|
|
300
|
-
## Cleanup After Migration
|
|
301
|
-
|
|
302
|
-
1. Remove `IgbGridLiteModule` registration from `Program.cs`.
|
|
303
|
-
2. Remove the `IgniteUI.Blazor.GridLite` CSS `<link>` from `index.html`.
|
|
304
|
-
3. Rename all `IgbGridLite` → `IgbGrid`, `IgbGridLiteColumn` → `IgbColumn` in `.razor` files.
|
|
305
|
-
4. Replace `GridLiteColumnDataType` → `GridColumnDataType` enum values.
|
|
306
|
-
5. In sort/filter expression objects, rename the `Key` property → `FieldName`.
|
|
307
|
-
6. Remove the `IgniteUI.Blazor.GridLite` NuGet package if no `IgbGridLite` instances remain:
|
|
308
|
-
```bash
|
|
309
|
-
dotnet remove package IgniteUI.Blazor.GridLite
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
---
|
|
313
|
-
|
|
314
|
-
## Key Rules
|
|
134
|
+
Details live in [`editing.md`](./editing.md), [`features.md`](./features.md), and [`state.md`](./state.md).
|
|
315
135
|
|
|
316
|
-
|
|
317
|
-
- `Height` (or a CSS-constrained container) is required for row virtualization in `IgbGrid`.
|
|
318
|
-
- `AllowFiltering="true"` must be set on the grid to show the filter row; `Filterable="true"` on a column opts that column in.
|
|
319
|
-
- Cell and header templates use Blazor render fragments (`BodyTemplate`, `HeaderTemplate`, `InlineEditorTemplate`) — not callbacks or delegates.
|
|
320
|
-
- For remote data, handle `SortingDone` / `FilteringDone` and reload `Data` from your server.
|
|
321
|
-
- `IgbColumn.FieldName` (in expression objects) replaces `IgbGridLiteColumn.Key` used in Grid Lite sort/filter expressions.
|
|
136
|
+
## Cleanup
|
|
322
137
|
|
|
138
|
+
1. Remove `IgbGridLiteModule` from `Program.cs`.
|
|
139
|
+
2. Remove the Grid Lite `<link>` from the host page.
|
|
140
|
+
3. Rename components, enum types, and expression `Key` → `FieldName` across `.razor` files.
|
|
141
|
+
4. Once no `IgbGridLite` remains: `dotnet remove package IgniteUI.Blazor.GridLite`.
|