Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/grid/manual-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ This sample shows how to set up the grid to use grouping with manual data source
@code {
public List<Employee> SourceData { get; set; }

// Handling grouping happens here - by casting the DataSourceResult.Data to objects
protected async Task ReadItems(GridReadEventArgs args)
{
// in this example, we use the Telerik extension methods to shape the data
Expand All @@ -243,7 +242,7 @@ This sample shows how to set up the grid to use grouping with manual data source
// to work with grouping, the grid data needs to be an IEnumerable<object>
// because grouped data has a different shape than non-grouped data
// and this is, generally, hidden from you by the grid, but now it cannot be
args.Data = datasourceResult.Data.Cast<object>().ToList();
args.Data = datasourceResult.Data;

args.Total = datasourceResult.Total;
args.AggregateResults = datasourceResult.AggregateResults;
Expand Down
4 changes: 2 additions & 2 deletions knowledge-base/grid-custom-grouping-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ To achieve custom grouping order in the Telerik Grid for Blazor, follow these st
List<string> customOrder = new List<string> { "Text D", "Text A", "Text C", "Text B" };
groups = groups.OrderBy(group => customOrder.IndexOf(group.Key.ToString())).ToList();

args.Data = groups.Cast<object>().ToList();
args.Data = groups;
}
else
{
Expand All @@ -104,7 +104,7 @@ To achieve custom grouping order in the Telerik Grid for Blazor, follow these st
.OrderBy(Text => GetCustomOrderIndex(Text.S1))
.ToList();

args.Data = orderedData.Cast<object>().ToList();
args.Data = orderedData;
}

args.Total = datasourceResult.Total;
Expand Down
Loading