DateRangePicker and Custom Download Issue

2 Answers 24 Views
DateRangePicker
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Tim asked on 20 Dec 2023, 10:54 PM

I created a custom download with DateRangePicker checked. I have a page with this code:

@(Html.Kendo().DateRangePicker()
    .Name("startEnd")
    .Messages(m => m.StartLabel("Start").EndLabel("End"))
)

When the page loads there is a JavaScript error in the console:

Uncaught TypeError: e._startInput.kendoDateInput is not a function

I created another custom download with DateInput and DateRangePicker checked.

When the page loads there is a different JavaScript error in the console:

Uncaught TypeError: o is not a constructor

I thought the custom download page handled the dependencies. Are there other DateRangePicker dependencies that I need to check?

Thanks

2 Answers, 1 is accepted

Sort by
1
Accepted
Georgi
Telerik team
answered on 25 Dec 2023, 09:40 AM

Hi Tim,

I tested the custom Download tool, and indeed it does not preselect the DateInput and the DateInputCommon packages as dependencies of the DateRangePicker, although it depends on them.

I have contacted the team in charge of the Download tool, and we will fix this as soon as possible.

Until then, please manually select both DateInput and the DateInputCommon, this should resolve the observed JS errors.

I hope this helps, and we apologize for the inconvenience.

Regards,
Georgi
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.
0
Tim
Top achievements
Rank 3
Iron
Iron
Iron
answered on 01 Jan 2024, 04:15 PM

Sorry for the late response. That worked!

Thanks for your help,

Tim

Tags
DateRangePicker
Asked by
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Georgi
Telerik team
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or