File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments