@code private IEnumerable<ApplicationValuesDto> AllApplicationsList = Array.Empty<ApplicationValuesDto>(); public class ApplicationValuesDto { public int applicationId { get; set; } public string applicationName { get; set; } public string commonName { get; set; } public string typeOfApplication { get; set; } } I fill radzen grid by private async Task SearchFilter() { var request = new HttpRequestMessage(HttpMethod.Get, config["API_URL"] + "Application/SearchFullDataLike/" + appfilter.server_Name + "/" + appfilter.databaseName + "/" + appfilter.ownerName); var client = ClientFactory.CreateClient(); var response = await client.SendAsync(request); using var responsestream = await response.Content.ReadAsStreamAsync(); AllApplicationsList = await JsonSerializer.DeserializeAsync<List<ApplicationValuesDto>>(responsestream); } I load data on protected override async Task OnInitializedAsync() { await SearchFilter(); } <RadzenGrid AllowPaging="true" PageSize=@pageSize chan AllowFiltering="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" AllowSorting="true" data="@AllApplicationsList" IsLoading="@isLoading" TItem="ApplicationValuesDto"> <Columns> <RadzenGridColumn TItem="ApplicationValuesDto" Property="applicationId" Title="Application ID" Visible="false"></RadzenGridColumn> <RadzenGridColumn TItem="ApplicationValuesDto" Property="applicationName" Title="Application Name"></RadzenGridColumn> <RadzenGridColumn TItem="ApplicationValuesDto" Property="commonName" Title="Common Name"></RadzenGridColumn> <RadzenGridColumn TItem="ApplicationValuesDto" Property="typeOfApplication" Title="Type Of Application"></RadzenGridColumn> <RadzenGridColumn TItem="ApplicationValuesDto" Title="Edit"> <Template Context="d"> <button type="button" @onclick="(()=> NavigateToEditApplication(d.applicationId))"> <img src="../assets/img/imageresize.png" /> </button> </Template> </RadzenGridColumn>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)