.Net Core 3.1 - Grid Not Load data

Hi,
I'm trying to use the grid with net core 3.1, 
but like the attached example, the grid does not load the data, can you give me any suggestion?

Regards

Attachment: TestSyncfusionGridNetCore30_cab0e21f.zip

3 Replies

PK Prasanna Kumar Viswanathan Syncfusion Team March 4, 2020 06:00 PM UTC

Hi Aguzz, 
 
Greetings from Syncfusion support 
 
If you are using the grid with Asp net core 3.1 framework then you have to configure the Application. Please follow the configuration process and general discussion link to achieve your requirement. 
 
  1. Install the NewtonsoftJson DLL
 
 
  1. Install the Browser DLL
 
 
  1. Configure your startup.cs file like the below screenshot
 
 
  1. Please maintain your csproj file like the below
 
 
 
 
Regards, 
Prasanna Kumar N.S.V 



IB Ibrahim June 27, 2020 07:30 PM UTC

Hello,
i am facing same issue on .Net Core 3.

i already did procedure but no data loaded; (i can insert new record)

     <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />
    <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
    <PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="17.4.0.53" />
     <PackageReference Include="Syncfusion.Licensing" Version="18.1.0.59" />
   
    
    <PackageReference Include="AutoMapper" Version="9.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Json" Version="2.2.0" />
     <PackageReference Include="Serilog.AspNetCore" Version="3.2.0" />
    <PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
    <PackageReference Include="Serilog.Sinks.Async" Version="1.4.0" />
    <PackageReference Include="Swashbuckle.AspNetCore" Version="5.5.1" />
    <PackageReference Include="IdentityServer4.AccessTokenValidation" Version="3.0.1" />
 
    <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.Autofac" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.AspNetCore.Authentication.JwtBearer" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.Identity.Web" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.Account.Web.IdentityServer" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.TenantManagement.Web" Version="2.9.0" />
    <PackageReference Include="Volo.Abp.FeatureManagement.Web" Version="2.9.0" />
   </ItemGroup>



<ejs-grid id="Grid"  toolbar="@(new List<string>() { "Add", "Edit", "Delete","Update","Cancel" })">
    <e-data-manager url="/api/app/tblmachineinfo" adaptor="WebApiAdaptor" crossdomain="true" ></e-data-manager>
    <e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Normal"></e-grid-editSettings>
    <e-grid-columns>
        <e-grid-column field="IpAddress" headerText="Addresse Ip" validationRules="@(new { required=true})" textAlign="Right" width="100"></e-grid-column>
        <e-grid-column field="MachineNo" headerText="No Machine" validationRules="@(new { required=true, minLength=1})" type="string" width="120"></e-grid-column>
        <e-grid-column field="CreationTime" headerText="Date Creation" textAlign="Right" width="120"></e-grid-column>
    </e-grid-columns>
</ejs-grid>




{"TotalCount":4,"Items":[{"IpAddress":"192.168.10.222","MachineNo":"120","Makeby":null,"Makedate":null,"Updateby":null,"Updatedate":null,"Deleteby":null,"Deletedate":null,"Ysnactive":null,"LastModificationTime":null,"LastModifierId":null,"CreationTime":"2020-06-27T19:52:59.682076","CreatorId":null,"Id":"d7f03112-c59f-485e-7296-39f6094d0150"},{"IpAddress":"22.22.22","MachineNo":"21","Makeby":null,"Makedate":null,"Updateby":null,"Updatedate":null,"Deleteby":null,"Deletedate":null,"Ysnactive":null,"LastModificationTime":null,"LastModifierId":null,"CreationTime":"2020-06-27T06:44:41.2344196","CreatorId":null,"Id":"6a628556-434e-3c59-fbc1-39f6067b4a08"},{"IpAddress":"192.168","MachineNo":"2","Makeby":null,"Makedate":null,"Updateby":null,"Updatedate":null,"Deleteby":null,"Deletedate":null,"Ysnactive":null,"LastModificationTime":null,"LastModifierId":null,"CreationTime":"2020-06-27T06:43:56.7600521","CreatorId":null,"Id":"b76ab76b-d163-b982-8020-39f6067a9c19"},{"IpAddress":"192.168.1.1","MachineNo":"11","Makeby":"string","Makedate":"2020-06-26T22:49:47.944","Updateby":"string","Updatedate":"2020-06-26T22:49:47.944","Deleteby":"string","Deletedate":"2020-06-26T22:49:47.944","Ysnactive":true,"LastModificationTime":null,"LastModifierId":null,"CreationTime":"2020-06-26T23:50:08.0329527","CreatorId":null,"Id":"28734a61-1fe9-1ee9-3611-39f604ffbe







RR Rajapandi Ravi Syncfusion Team June 29, 2020 09:52 AM UTC

Hi Ibrahim, 

Thanks for the update 

Before we start providing solution on your query, Please share the below details that will be helpful for us to provide better solution. 

1)     Try binding actionFailure event to the Grid and share the stack details. 
 
2)      Please share the screen shot or video demonstration of the issue. 

Regards,
Rajapandi R


Loader.
Up arrow icon