Skip to content

Commit ab3a02a

Browse files
chore(Grid): update breaking change article
1 parent 2298aa6 commit ab3a02a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

components/grid/grouping/load-on-demand.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ Scroll through the groups or expand them to load their data on demand
161161
162162
if (args.Request.Groups.Count > 0)
163163
{
164-
args.Data = result.GroupedData.Cast<object>().ToList();
164+
args.Data = result.GroupedData;
165165
}
166166
else
167167
{
168-
args.Data = result.CurrentPageData.Cast<object>().ToList();
168+
args.Data = result.CurrentPageData;
169169
}
170170
171171
args.Total = result.TotalItemCount;

upgrade/breaking-changes/7-0-0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ The obsolete `ClearButton` parameter is removed. Use `ShowClearButton` instead.
4343
* The obsolete `AutoFitColumn()` method is removed. [Use `AutoFitColumnAsync()`]({%slug components/grid/columns/resize%}#autofit-columns) instead.
4444
* The obsolete `AutoFitColumns()` method is removed. Use `AutoFitColumnsAsync()` instead.
4545
* The obsolete `AutoFitAllColumns()` method is removed. Use `AutoFitAllColumnsAsync()` instead.
46+
* When using grouping and `OnRead`, casting the `DataSourceResult.Data` to a list of objects (`.Cast<object>().ToList();`) is no longer needed.
4647

4748
## TextArea
4849

0 commit comments

Comments
 (0)