Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150573 | Jan 11,2020 05:09 PM UTC | Jan 27,2020 05:15 AM UTC | Blazor | 5 |
![]() |
Tags: Grid |
<EjsGrid @ref=@grid TValue="ExpandoObject" DataSource="@Orders" AllowPaging="true" AllowResizing=true Width="100%" Height="100%">
. . . . . . . . . . .
</EjsGrid>
@code{
EjsGrid<ExpandoObject> grid { get; set; }
public List<ExpandoObject> Orders { get; set; }
protected override async Task OnInitializedAsync()
{
Orders = await OrderData.GetStudentsAsync();
}
}. . . . . . . .
public async Task<List<ExpandoObject>> GetStudentsAsync()
{
HttpClient http = new HttpClient();
var json = await http.GetStringAsync("https://localhost:44349/api/Default");
return JsonConvert.DeserializeObject<List<ExpandoObject>>(json);
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.