Object does not support the property or method "kendo datetimepicker"

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    1 posts
    Member since:
    Jul 2012

    Posted 13 Jul 2012 Link to this post

    Hi,

    I try to create a DateTimePickerFor to pick my StartDate in an MVC Application.

    @(Html.Kendo().DateTimePickerFor(model => model.StartTime)
    .Format(
    "dd.MM.yyyy HH:mm")
    .Name(
    "DateTimePickerStartTime")
    .Value(DateTime.Now)
    )

    When I load the page I can just see a textbox. The DropDownListFor worked fine.

    In IE developer tools it says:
    Object does not support the property or method "kendo datetimepicker"

    But I did not even create the object, it is created by the WidgetFactory.

    Can you tell me what I missed?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 16 Jul 2012 Link to this post

    Hello Kevin,

     This would happen if the required JavaScript files are not included or if jQuery is included twice. Please refer to the documentation for more info.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Ra
    Ra avatar
    2 posts
    Member since:
    Aug 2012

    Posted 03 Sep 2012 Link to this post

    I get the same error.
    I am using the Kendo web ui trial version.

    The page source shows that I have included jQuery and the Kendo files.
    Any ideas why this happens?
    I am using jQuery 1.8.0.

    Thanks,
    Ra
Back to Top