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

Object does not support method kendoGrid

3 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
laurent
Top achievements
Rank 1
laurent asked on 29 May 2019, 02:23 PM

(It's a trial version)

Impossible to display data.

Data are correctly supplied in my form (see DOM capture)

But there is an error :  L’objet ne gère pas la propriété ou la méthode « kendoGrid »

 JS are the same than in examples.

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 03 Jun 2019, 09:47 AM
Hi laurent,

I have investigated the provided screenshots of the code snippets and I have noticed that you have configured the data source of the grid to be "Ajax", however, you attempt to make a server binding. This is due to the fact that a collection is returned via the view and then bound to the grid as follows:

@(Html.Kendo().Grid<Sample.Models.OrderViewModel>(Model)

However, this is an approach that is supported only with the ASP.NET MVC wrappers for the Kendo UI Grid. The ASP.NET Core framework, as a whole, works differently than the ASP.NET MVC and the server binding is not supported. 

If you would like to continue with the Ajax approach, you might examine the example set in the following live demo:

https://demos.telerik.com/aspnet-core/grid/remote-data-binding

Let me know in case any questions arise.


Kind regards,
Tsvetomir
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.
0
laurent
Top achievements
Rank 1
answered on 04 Jun 2019, 07:23 AM

Good Thank a bunch for this explanation Tsvetomir.

OK I'm going to implement a remote binding (to compare both binding).

However, (as I said to Enza Lisanti) a local binding works well too ! (in NetCore 2.2 - see captures inclosed ) only if you implement it in a new solution (by the menu Telerik under IE menu) : the problem  was :  I tried to implement telerik grid in an existing solution (not by using Telerik menu ).

Keep me inform

Best and kind regards

Laurent

 

0
Tsvetomir
Telerik team
answered on 06 Jun 2019, 02:41 PM
Hi Laurent,

Based on the provided information, the issue on hand is that the grid is rendering only when it is built from the Visual Studio extensions, is that correct? If so, the issue might be that the client-side scripts and styles have not been added to the project. They are not automatically added to the project when the NuGet package has been installed. 

A walk through of the process for getting the ASP.NET Core project to work could be found here:

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

More information on the client-side resources could be found in the following article:

https://docs.telerik.com/aspnet-core/getting-started/getting-started-copy-client-resources

In case the issue persists, is it possible for you to provide a sample project in which the faulty behavior could be observed? Then, I would have the opportunity to investigate it locally and get back with accurate suggestions.

Thank you for your cooperation in advance.


Kind regards,
Tsvetomir
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
General Discussions
Asked by
laurent
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
laurent
Top achievements
Rank 1
Share this question
or