Unplanned
Last Updated: 14 Apr 2022 11:00 by ADMIN
Joel Kraft
Created on: 14 Apr 2022 10:54
Category: DateRangePicker
Type: Bug Report
1
Client Error When Setting MinDate or MaxDate

Error thrown:
Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: 'maxDate' is not a property or an existing field.

Setup for reproduction:

<asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>

<telerik:RadDateRangePicker runat="server" ID="RadDateRangePicker1"
MinDate="2022-05-01" MaxDate="2022-05-01">
</telerik:RadDateRangePicker>

1 comment
ADMIN
Doncho
Posted on: 14 Apr 2022 11:00

As a workaround, you can use the relevant properties of the embedded Calendar and DatePickers to set the Min and Max allowed dates for the RadDateRangePicker:

<telerik:RadDateRangePicker runat="server" ID="RadDateRangePicker1">
    <Calendar RangeMinDate="2022-05-01" RangeMaxDate="2022-08-01"></Calendar>
    <StartDatePicker MinDate="2022-05-01"></StartDatePicker>
    <EndDatePicker MaxDate="2022-08-01"></EndDatePicker>
</telerik:RadDateRangePicker>

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