Kendo Trial - error on "empty" app

2 posts, 0 answers
  1. Nico
    Nico avatar
    1 posts
    Member since:
    Mar 2012

    Posted 22 Mar 2012 Link to this post

    Just downloaded the trial version of Kendo Mobile, and created a "empty" MVC3 web project as a playground.

    Added the css and js files, but I can't seem to get it to work.

    _Layout.cshtml:
    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="utf-8" />
      <title>@ViewBag.Title </title>
      <link href="@Url.Content("~/Content/kendo.mobile.ios.min.css")" rel="stylesheet" type="text/css" />
      <script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>
      <script src="@Url.Content("~/Scripts/kendo.mobile.min.js")" type="text/javascript"></script>

    </head>
    <body>
      <div data-role="view">
        <div data-role="header">
          Header</div>
        Hello world!
        <div data-role="footer">
          Footer</div>
      </div>
      @RenderBody()
      <script type="text/javascript">
        window.kendoMobileApplication = new kendo.mobile.Application(document.body);
      </script>
    </body>
    </html>
    * The @RenderBody will only render a dummy content (no HTML present)
    Running the website I get a JScript runtime error in the kendo.mobile.min.js file.
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 23 Mar 2012 Link to this post

    Hi,

    Kendo UI Mobile works only in webkit based browsers. From what I see, you try to run it in Internet Explorer. 


    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top