I'm currently using Typescript and the latest kendo type definition (and WebStorm as my IDE).
I am using the DataSource as illustrated in the second example of the Read section at this link:
http://docs.telerik.com/kendo-ui/framework/datasource/crud
where read is set to be a function.
Everything compiles fine and works BUT my editor is not able to resolve this overloaded version based on the kendo ui type definition.
How can I get an updated version of the definition that contains this overload OR how can I resolve this issue?
I've attached a screenshot demonstrating the error.
9 Answers, 1 is accepted
Hello Mike,
I have just tested this with the latest typescript definitions and it worked correctly. Please make sure that you are using the latest definitions in your project.
Regards,Kiril Nikolov
Telerik
Hello Mike,
I have tested that as well. I am using the 2015.3.1214 version. Can you please download it from your account and try it?
Regards,
Kiril Nikolov
Telerik
I am now upgraded my project to use Q1 2016 of Kendo UI and I am still getting the issue. Find attached screenshots of following the the object chain.
The screenshots are named numerically and should be viewed in numeric order.
Assigning a function to Read as I am doing in the first screenshot above works and transpiles BUT I receive an error from my IDE (WebStorm) as can be seen in screenshot #1. WebStorm however appears to be correct that ‘read’ doesn’t evaluate to a function but rather an object that extends JQueryAjaxSettings. How can I make the error go away?
I am not sure what is causing this error in your IDE as I am not able to reproduce it inside Visual Studio (I do not have WebStorm available here). Can you reproduce the same error in a VS solution or other IDE?
Regards,
Kiril Nikolov
Telerik
The problem is that I cannot reproduce the same issue locally and therefore see what is causing the issue, as the documentation is correct the read supports a function as well as object or a string. When I use your configuration locally I do not get the same error.
We will further investigate the issue and if something comes up - or you send us a sample where we can reproduce the issue - it will really help.
Regards,
Kiril Nikolov
Telerik
I am not able to reproduce the problem locally, please see the attached screenshot showing the working code. I believe it is an issue with your editor and its settings.
Regards,
Kiril Nikolov
Telerik