public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
...
services.AddMvc()
.AddJsonOptions(x =>
{
x.SerializerSettings.ContractResolver = null;
});
...
}
|
<e-columns>
<e-column field="OrderID" header-text="Order ID" is-primary-key="true” text-align="Right" width="75"></e-column>
<e-column field="EmployeeID" header-text="Employee ID" text-align="Right" width="75"></e-column> //assign the field as it is like which returns from database
</e-columns> |
Thank you for your answer.
The solution is working fine, but breaks my angular code (I use it in different pages).
Since I cannot change it now, I implemented the following workaround:
if (dataManager.Where != null && dataManager.Where.Count > 0) //Filtering
{
foreach(var where in dataManager.Where)
{
where.Field = char.ToUpper(where.Field[0]) + where.Field.Substring(1);//make first letter uppercase
}
data = ops.PerformWhereFilter(data, dataManager.Where, dataManager.Where[0].Operator);
}
Thanks for the answer and the examples!
Regars,
Chiara