Last Updated: 14 Apr 2022 11:00 by ADMIN
Joel Kraft
Created on: 14 Apr 2022 10:54
Category: DateRangePicker
Type: Bug Report
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">

1 comment
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>

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.