This is a migrated thread and some comments may be shown as answers.

Display Grid

3 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 13 Nov 2019, 07:04 PM

Hi, this is my first time exploring the Grid in ASPNET.CORE. I am unable to display the grid on the page with the bare minimum by following the Grid Example (Index Controller and View). Please be rest assured that there is data being returned by the repository.

I am assuming that the Findings_Read([DataSourceRequest] DataSourceRequest request) will be called upon loading. However, it is not called at all. This is not the case when running the Telerik Trial Examples.

Please see the attached files for what I have written.

Let me know what am I missing here.

3 Answers, 1 is accepted

Sort by
0
Antony
Top achievements
Rank 1
answered on 14 Nov 2019, 02:18 PM

Adding the reference to kendo.all.min.js and kendo.aspnetmvc.min.js fixed the issue of calling the Read action.

However, I am having issue with the Json data source result being returned is not bound to the Grid, even though I see records in Json.

Please help.

0
Antony
Top achievements
Rank 1
answered on 14 Nov 2019, 02:28 PM

Never mind. I managed to find out the fix.

I have to add the following line in Startup.cs, ConfigureServices method.

services.AddNewtonsoftJson(options => options.SerializerSettings.ContractResolver = new DefaultContractResolver());

0
Viktor Tachev
Telerik team
answered on 18 Nov 2019, 01:04 PM

Hello Antony,

 

I am glad to see that you have successfully to bind the Grid widget.

If you would like more information on setting up the environment and binding the Grid you would find the resources below interesting:

https://docs.telerik.com/aspnet-core/getting-started/prerequisites/environment-support

https://docs.telerik.com/aspnet-core/html-helpers/data-management/grid/binding/ajax-binding

 

In case you have additional questions do not hesitate to contact us again.

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Antony
Top achievements
Rank 1
Answers by
Antony
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or