KendoGrid is not a function only while doing remote calls or some ajax calls before kendogrid intialization

2 Answers 36 Views
Let's talk about telerik (the good and the bad)
sandeep
Top achievements
Rank 1
sandeep asked on 06 Aug 2023, 06:03 AM

Hi Team,

I am facing a strange issue.

I included all required scripts in _layout.cshtml head section.

 

In child page(Index.cshtml):

If I try to do remote call and assign data to grid, then it return KendoGrid is not a function error in console.

But if I try to create grid using a static data, grid is loading as expected.

 

As per my understanding, here issue is if i make a remote call or ajax call which can take some amount of time to fetch data, then I am facing this error otherwise with some static data, grid is working fine.

 

If anyone knows fix, please help

2 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 10 Aug 2023, 05:04 AM

Hi Sandeep,

Usually, such an error appears when the jQuery is included more than once or is included after the kendo script. Thus I would suggest you double check if for some reason the jQuery script is not included multiple times. You can read more below:

https://docs.telerik.com/kendo-ui/knowledge-base/widgets-unavailable-undefined

In case the issue continues to persist, please provide some more information about the exact implementation on your side, so we could get a better idea of the scenario and test locally.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
sandeep
Top achievements
Rank 1
answered on 13 Aug 2023, 06:05 AM

Hi Neli,

 

You are correct. In our project we are referencing Jquery scripts after kendo scripts which is wrong and causing this issue.

 

Thanks for your answer and your time!!

 

 

Tags
Let's talk about telerik (the good and the bad)
Asked by
sandeep
Top achievements
Rank 1
Answers by
Neli
Telerik team
sandeep
Top achievements
Rank 1
Share this question
or