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

Filter exception in Kendo Ui Grid with React

6 Answers 1219 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Darko
Top achievements
Rank 1
Darko asked on 15 Oct 2018, 08:49 AM

Hello,

We are facing a problem with filtering in Kendo UI Grid in React. I'm getting following exception op() is not a functiondirectly after I select an operator (for example "Ist gleich"):

This is the stacktrace:

filter-no-eval.js:81 Uncaught TypeError: op is not a function
    at filter-no-eval.js:81
    at filter-no-eval.js:10
    at count (array.operators.js:85)
    at process (array.operators.js:151)
    at KendoGrid.push../Global/Controls/KendoGrid.tsx.KendoGrid.render (KendoGrid.tsx:45)
    at finishClassComponent (react-dom.development.js:13538)
    at updateClassComponent (react-dom.development.js:13501)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)

 

I tried the same example which is on the Kedno UI Grid for React website (https://www.telerik.com/kendo-react-ui/components/grid/advanced-examples/stateful-grid/), and there it is working fine. However, I could found that the filter object is not the same in the 2 cases.

This is the filter object structure in my case where im getting the exception:

 

This the filter object structure from the example in Kendo website:

Any suggestion or help is highly appreciated

Thanks in advance!


6 Answers, 1 is accepted

Sort by
0
Missing User
answered on 16 Oct 2018, 06:25 PM
Hello Darko,

Thank you for reaching out to us on this, in order to receive support via the dedicated support ticketing system, you must have an active support license. If you need any assistance with obtaining a license, I will be able to connect you with the appropriate product specialist to begin the process. However, if you do have an active license under a different email address that is not currently assigned to you, please contact the license holder directly to have yourself assigned as an end user. Once this has been done please respond to this ticket and we will forward your inquiry to the appropriate support team. Please do not hesitate to contact us with any additional questions or concerns.



Regards,
Tsvetana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Darko
Top achievements
Rank 1
answered on 17 Oct 2018, 11:07 AM

This is my current email address:

Email
darko.konrad@labs.lupusalpha.de
Customer ID

QN4945699

 

Please reattach this ticket to the current address.

 

Thanks,

Darko

0
Stefan
Telerik team
answered on 18 Oct 2018, 08:11 AM
Hello, Darko,

Thank you for the details.

Showing the different filters was very helpful in locating the issue.

I was able to reproduce the issue if the Grid packages is an older < 2 and the DropDowns are with the latest version.

The issue is caused because before version 2, the DropDowns were returning value as a single value, and now they return the entire object. This is handled in the latest version of the Grid, but in the older version the Grid expected a single value and received an object. Then this object is passed to the process method where the actual error occurs.

Please update the Grid to the latest version and ensure that all KendoReact components packages are with matching versions.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Darko
Top achievements
Rank 1
answered on 22 Oct 2018, 11:59 AM

Dear Stefan,

I have run yarn upgrade. I think the latest versions were already installed in the project because no changes were made due to the upgrade. I have attached a printscreen with the packages versions. Is there any that is not up to date that might cause this problem?

I look forward to your reply.

Best regards,

Darko

0
Darko
Top achievements
Rank 1
answered on 22 Oct 2018, 12:45 PM

Hello Stefan,

it seems I was badly updating the packages when using yarn. I now managed to update the KendoReact packages and it works fine now. We can call this issue as solved.

I thank you a lot for the help! 

Best regards,

Darko

 

0
Darko
Top achievements
Rank 1
answered on 22 Oct 2018, 12:48 PM

Hello Stefan,

it seems I was misusing yarn's update functionality. I now managed to update the KendoReact packages and it all works just fine. We can call it solved.

I thank you a lot for the help!

Best regards,

Darko

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