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

Using kendo-react-query with <script> tag

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Samet
Top achievements
Rank 1
Samet asked on 16 Feb 2021, 08:19 PM

Hello. I am trying to create a filterable grid table. In our project, we are using React partly, meaning I need to import all my dependencies via script tag. I was following the Grid Component example in the docs but couldn't find a way to import process function from kendo-react-query library.

Code: import { process } from '@progress/kendo-data-query';

I need this as a script tag so that I can consume it through window object like this: window.KendoDataQuery.process

I already added all the recommended js script tags into my page but couldn't find this specific process function in the window object under any of the Kendo objects.

 

Help is appreciated. Thanks.

2 Answers, 1 is accepted

Sort by
0
Samet
Top achievements
Rank 1
answered on 16 Feb 2021, 08:20 PM
I meant kendo-data-query, sorry about that.
0
Stefan
Telerik team
answered on 17 Feb 2021, 11:53 AM

Hello, Samet,

This is the script tag for the data-query package:

<script src="https://unpkg.com/@progress/kendo-data-query@latest/dist/cdn/js/kendo-data-query.js"></script>
This is an example of accessing it:

http://dojo.telerik.com/EMibUkUl/23

      render() {
        console.log(window.KendoDataQuery.process)
I hope this is helpful.

 

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Samet
Top achievements
Rank 1
Answers by
Samet
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or