Completed
Last Updated: 08 Jan 2020 12:20 by ADMIN
Release R1 2020
Mark
Created on: 08 Jan 2020 12:13
Category: MonthYearPicker
Type: Bug Report
0
MonthYearPicker throws a Sys.ArgumentUndefinedException error: Value cannot be undefined.

This bug started happening in version Telerik 2019.3.917, and is still present in Telerik 2019.3.1023.

The reproduction is extremely basic:

<table runat="server">
    <tr>
        <td>Month/Year:</td>
        <td>
            <telerik:RadMonthYearPicker ID="MonthYear" runat="server" Width="150px">
            </telerik:RadMonthYearPicker>
        </td>
        <td>
            <asp:Button ID="btnGenerate" runat="server" Text="Get Report" OnClick="btnGenerate_Click" />
        </td>
    </tr>
</table>

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MonthYear.SelectedDate = DateTime.Today;
            MonthYear.MaxDate = DateTime.Today.AddDays(1);
        }
    }

When i select a month/date from the control and submit the page i'm getting this script error:

The page freezes and i can get this error in Chrome from browser right-click->inspect->Console tab


Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: handler
    at Function.Error$create [as create] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:846:15)
    at Object.Sys._errorArgument (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:820:21)
    at Function.Error$argumentUndefined [as argumentUndefined] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:967:16)
    at Function$_validateParameterType [as _validateParameterType] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:752:68)
    at Function$_validateParameter [as _validateParameter] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:718:18)
    at Function$_validateParams [as _validateParams] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:667:22)
    at EventHandlerList$removeHandler [as removeHandler] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:4317:26)
    at Telerik.Web.UI.RadMonthYearPicker.remove_popupClosed (https://demoqa.eadoptonline.com/ScriptResource.axd?d=NAm9_BUOko6CkesPLImYb2A55VPIRu-UCSoGE0uxmsJ8lvsS34lGr2EEOZoyviJgEVQp9_xlCqxChDh_ICIkNFg4Hl8ZOSC3tB9f7qegoCGT9B0MvjRl8_AHPeDn6xvIevb4dw7_R6KldeCy7Q2g_fEsCANpDrsbBDlSFdgoCvs1&t=495c3101:430:52)
    at Telerik.Web.UI.RadMonthYearPicker.dispose (https://demoqa.eadoptonline.com/ScriptResource.axd?d=NAm9_BUOko6CkesPLImYb2A55VPIRu-UCSoGE0uxmsJ8lvsS34lGr2EEOZoyviJgEVQp9_xlCqxChDh_ICIkNFg4Hl8ZOSC3tB9f7qegoCGT9B0MvjRl8_AHPeDn6xvIevb4dw7_R6KldeCy7Q2g_fEsCANpDrsbBDlSFdgoCvs1&t=495c3101:70:39)
    at _Application$disposeElement [as disposeElement] (https://demoqa.eadoptonline.com/ScriptResource.axd?d=yeSNAJTOPtPimTGCAo3LlSTEwozB1XnepkarDEUPWzZVW2OdkEi9Jhbkr_UU436f4VpEDVchRtgOVq8vHj4-CEvT38w5owA5zsuZZrwuguk6iGqpksT0_zgBW7td9lAG0&t=f2cd5c5:5810:27)

You can see at the base of the call stack that the RadMonthYearPicker control is referenced. 

1 comment
ADMIN
Rumen
Posted on: 08 Jan 2020 12:20

Hi Mark,

Thank you for reporting this error!

I have good news that the issue will be fixed in R1 2020, to be out on January 15.

Best Regards,
Rumen
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.