kendo.mobile.Application() is not a constructor error

1 Answer 19 Views
Application ScrollView (Mobile)
Michael
Top achievements
Rank 1
Michael asked on 23 Jan 2025, 07:44 PM

The following line results in an error message stating that kendo.mobile.Application() is not a constructor.

I'm also getting the error when I attempt to run any of the kendo mobile examples in Dojo.

For example, the "Open in Dojo" example from here will not run. show - API Reference - Kendo UI Loader - Kendo UI for jQuery and has the same error.

This is my "import" area:

@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
<link href="@Url.Content("~/Content/kendo/2024.4.1112/default-main.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/kendo/2024.4.1112/classic-moonlight.css")" rel="stylesheet" type="text/css" />
<script src="https://unpkg.com/jszip/dist/jszip.min.js"></script>
<script src="@Url.Content("~/Scripts/kendo/2024.4.1112/kendo.all.min.js")"></script>
<script src="@Url.Content("~/Scripts/kendo/2024.4.1112/kendo.aspnetmvc.min.js")"></script>
<script src="@Url.Content("~/Scripts/kendo.modernizr.custom.js")"></script>
<script src="@Url.Content("~/Scripts/FilteredDropDownFunctions.js")"></script>
<script src="@Url.Content("~/Scripts/AutoSaveOnNavigateFunctions.js")"></script>

This is the code causing the error:

<script>
    var app = new kendo.mobile.Application();
    if(kendo.support.browser.safari) { kendo.support.pointers = false; } 

    ....

</script>

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 28 Jan 2025, 10:27 AM

Hello Michael,

Starting with the R2 2023 release, Kendo UI no longer ships Hybrid (mobile) UI components. The last stable version we recommend for Kendo Hybrid components isR3 2022 SP1.

This has been stated in the next documentation article: 

https://docs.telerik.com/kendo-ui/controls/hybrid/application

More information about this retirement and the reason we decided to go this path you can find in the blog post below, section Kendo Hybrid Retirement:

https://www.telerik.com/blogs/r2-2023-kendo-ui-release?#end-of-support-announcements

If you are purely looking to render screens in a more mobile-friendly way, then the good news is that the Kendo UI components are built to be able to respond to the available screen size and also have support for handling touch as the main interface to interact with the components. There shouldn't be a need to involve other technologies, nor would you need to specifically build a PWA. If this is indeed the case, I would recommend building responsive behavior into the screens you are trying to create by building the screens to respond to the available viewport and adding in the UI components you've already been using today from Kendo UI.

Regards,
Nikolay
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.

Tags
Application ScrollView (Mobile)
Asked by
Michael
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or