Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147515 | Sep 13,2019 01:37 PM UTC | Oct 11,2019 07:25 AM UTC | Blazor | 8 |
![]() |
Tags: Grid |
[Startup.cs]
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().AddNewtonsoftJson(options => {
options.SerializerSettings.ContractResolver = new DefaultContractResolver();
});
}
|
|
public class Orders
{
public long OrderID { get; set; }
public readonly string CustomerID = "Vinet";
public int EmployeeID { get; set; }
. . . .
} |
<EjsGrid TValue="OrdersDetails" ModelType="@Model" AllowPaging="true">
<EjsDataManager Url="api/Default" Adaptor="Adaptors.WebApiAdaptor"></EjsDataManager>
………………………………….
</EjsGrid>
@code{
public List<OrdersDetails> Order = new List<OrdersDetails>();
public OrdersDetails Model = new OrdersDetails();
public class ViewModel
{
public long OrderID { get; set; }
public string CustomerID { get; set; }
. . . . . .
}
} |
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.3.17/fabric.css" rel="stylesheet" />
<script src="https://cdn.syncfusion.com/ej2/17.3.17/dist/ej2.min.js"></script>
<script src="https://cdn.syncfusion.com/ej2/17.3.17/dist/ejs.interop.min.js"></script>
|
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.