<input id="Service" name="Service" style="width:900px"/>#Service
{
width: 600px;
}
01. $(function () {02. var window = $("#popup").kendoWindow({03. animation: {04. open: {05. effects: { fadeIn: {} },06. duration: 200,07. show: true08. },09. close: {10. effects: { fadeOut: {} },11. duration: 600,12. hide: true13. }14. },15. visible: false,16. title: "Create ...",17. modal: true,18. close: function () {},19. 20. }).data("kendoWindow");21. 22. window.bind("refresh", function() {23. window.center();24. window.open();25. });26. });27. function createNewNotam() {28. 29. var model = @Html.Raw(Json.Encode(subjectModel))30. 31. $("#NSDEditor-Popup").data("kendoWindow")32. .content("")33. .refresh({34. url: "../Dashboard/Create",35. type: "POST",36. data: model37. });38.}
What is the correct way to import Kendo when using TypeScript and RequireJS?
I have added the kendo.web.d.ts file to my typings folder in my project and then I tried to import kendo with the following code:
import kendo = require("kendo");However, this I get the following error:
error TS2071: Build: Unable to resolve external module '"kendo"'.
I am able to import jQuery with the following code:
import $ = require("jquery");And it does not have an issue. So I'm wondering what is needed to import Kendo.
Also, I found this post: http://www.telerik.com/forums/typescript-requirejs, where it mentions adding the "amd-dependency path", but that seems like extra work. I don't want to have to add that comment to each TypeScript file that uses Kendo. It seems like I should be able to use the import statement, like I can with other libraries (such as jQuery).
I have not found any documentation on this topic on the Kendo site, so any help would be greatly appreciated.
Thanks,
Sean
