Use the LoadData
event to get data from a REST service.
<RadzenDataGrid Count="@count" Data="@employees"
employees
and count
in this case).
async Task LoadData(LoadDataArgs args)
{
var result = await service.GetEmployees(filter: args.Filter, top: args.Top, skip: args.Skip, orderby: args.OrderBy, count: true);
employees = result.Value.AsODataEnumerable();
count = result.Count;
}
Radzen is a desktop tool that gives you the power to create line of business applications. Build and launch Blazor apps visually, while we generate clean code for you.
Source Code licensed under MIT