I am trying to use the DateRangePicker in Telerik for ASP.NET MVC. I am using the latest version of Telerik and ASP.NET MVC. However, I get the following error, both in the editor and at runtime (so it's not an Intellisense issue):
Kendo.Mvc.UI.Fluent.WidgetFactory<System.Collections.Generic.List<KPIView_MVC.Models.KPIData>> does not contain a definition for 'DateRangePicker' and no extension method 'DateRangePicker' accepting a first argument of type Kendo.Mvc.UI.Fluent.WidgetFactory<System.Collections.Generic.List<KPIView_MVC.Models.KPIData>> could be found
How can I get it to work correctly?
2 Answers, 1 is accepted
answered on 17 Dec 2019, 12:01 PM
It looks like the Kendo.Mvc.dll which is referenced in the project is an older one. Can you verify which version the dll points to as the DateRangePicker became available in R1 2019?
In addition to that, do you have any issues with other widgets, for example can you include this in the view and let us know if you get any errors:
Hi there, thanks for the reply. I don't have issues with other widgets I've been using; in fact, while waiting for a response I've just temporarily switched over to two DatePicker widgets, so that's fine.
The Kendo.Mvc dll is version 2017.3.1026.545 according to the properties pane in Visual Studio, so it does seem that that is in fact my problem. That's weird, though, since I thought I made this project with the newest version of Telerik for ASP.NET MVC (I only just created the project in November of this year). I've updated my project's version of Telerik and confirmed that this fixed the issue. Thank you!