Uncaught TypeError: Cannot read property 'add_selectedIndexChanged' of null

3 posts, 1 answers
  1. David
    David avatar
    2 posts
    Member since:
    Sep 2011

    Posted 14 Jul 2018 Link to this post

    Hi,

    I want to get a scheduler up and running quickly in an existing webforms project (I have used it in other projects with success) so I've tidied up and dropped a couple of examples from the Telerik demos straight into my project. With all of my tests I cannot add or edit appointments - it seems to be having problems displaying the appointment form. If I right-click to add or edit, I get a visible page postback and the following JS error in the console:

     

    Uncaught TypeError: Cannot read property 'add_selectedIndexChanged' of null

    at d.LiteView._initializeRecurrenceDropDown (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a41a6cee9%3ab7778d6c%3a8674cba1%3a7c926187%3ac08e9f8a%3a2e42e72a%3aef347303%3a2b0ba4c2%3aabc1db80%3a6b3f73b3%3ae085fe68:3918)

    (full error details below)

     

    Not had this problem before. I'm hoping this is something simple. I'm using UI for ASP.NET AJAX Q2 2015. Please can anyone help?

    Thanks,

    David

     

    <p>Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a41a6cee9%3ab7778d6c%3a8674cba1%3a7c926187%3ac08e9f8a%3a2e42e72a%3aef347303%3a2b0ba4c2%3aabc1db80%3a6b3f73b3%3ae085fe68:3918 Uncaught TypeError: Cannot read property 'add_selectedIndexChanged' of null</p><p>    at d.LiteView._initializeRecurrenceDropDown (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a41a6cee9%3ab7778d6c%3a8674cba1%3a7c926187%3ac08e9f8a%3a2e42e72a%3aef347303%3a2b0ba4c2%3aabc1db80%3a6b3f73b3%3ae085fe68:3918)<br>    at d.LiteView.initialize (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a41a6cee9%3ab7778d6c%3a8674cba1%3a7c926187%3ac08e9f8a%3a2e42e72a%3aef347303%3a2b0ba4c2%3aabc1db80%3a6b3f73b3%3ae085fe68:3911)<br>    at c.RecurrenceEditor._initializeView (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a41a6cee9%3ab7778d6c%3a8674cba1%3a7c926187%3ac08e9f8a%3a2e42e72a%3aef347303%3a2b0ba4c2%3aabc1db80%3a6b3f73b3%3ae085fe68:3650)<br>    at c.RecurrenceEditor.initialize (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a41a6cee9%3ab7778d6c%3a8674cba1%3a7c926187%3ac08e9f8a%3a2e42e72a%3aef347303%3a2b0ba4c2%3aabc1db80%3a6b3f73b3%3ae085fe68:3627)<br>    at c.RecurrenceEditor.endUpdate (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a16e4e7cd%3af7645509%3a2003d0b8%3a24ee1bba%3ac128760b%3a1e771326%3a88144a7a%3af46195d3%3aaa288e2d%3a258f1c72%3aed16cbdc%3a874f8ea2%3a4c8be21a%3a650fdad%3ad40f7d5c%3ae91ff703%3a7666c7ed%3a29e4ab07%3ab68dcd79%3a59462f1%3aa51ee93e%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6)<br>    at Sys.Component.create (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a16e4e7cd%3af7645509%3a2003d0b8%3a24ee1bba%3ac128760b%3a1e771326%3a88144a7a%3af46195d3%3aaa288e2d%3a258f1c72%3aed16cbdc%3a874f8ea2%3a4c8be21a%3a650fdad%3ad40f7d5c%3ae91ff703%3a7666c7ed%3a29e4ab07%3ab68dcd79%3a59462f1%3aa51ee93e%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6)<br>    at <anonymous>:24:5<br>    at Sys._Application.add_init (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a16e4e7cd%3af7645509%3a2003d0b8%3a24ee1bba%3ac128760b%3a1e771326%3a88144a7a%3af46195d3%3aaa288e2d%3a258f1c72%3aed16cbdc%3a874f8ea2%3a4c8be21a%3a650fdad%3ad40f7d5c%3ae91ff703%3a7666c7ed%3a29e4ab07%3ab68dcd79%3a59462f1%3aa51ee93e%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:6)<br>    at <anonymous>:1:17<br>    at Sys._ScriptLoader._loadScriptsInternal (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a48bbf511-5bf9-4491-9be4-5464dcf4e3ba%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2015.2.826.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a849ed206-4ebb-4251-adff-3e3454bb6f4e%3a16e4e7cd%3af7645509%3a2003d0b8%3a24ee1bba%3ac128760b%3a1e771326%3a88144a7a%3af46195d3%3aaa288e2d%3a258f1c72%3aed16cbdc%3a874f8ea2%3a4c8be21a%3a650fdad%3ad40f7d5c%3ae91ff703%3a7666c7ed%3a29e4ab07%3ab68dcd79%3a59462f1%3aa51ee93e%3ae330518b%3ac8618e41%3ae4f8f289%3a1a73651d%3a333f8d94:15)</p>
  2. Answer
    Peter Milchev
    Admin
    Peter Milchev avatar
    570 posts

    Posted 16 Jul 2018 Link to this post

    Hello David,

    Is it possible that you are testing on Internet Explorer with enabled Compatibility Mode? Please check if this behavior is observed on all browsers and it is only in Internet Explorer, please confirm that Compatibility Mode is disabled as explained in the Different appearance or behavior in Internet Explorer on local and production servers article.

    If you are using Google Chrome, please check the Appointment is invalid and Cannot Read Property errors for Scheduler in Chrome 61 thread where issues related to breaking changes in Google Chrome are discussed. 

    Also, please check if using a newer version of the Telerik controls would resolve the problem.

    Another thing you can check is if all controls on the page are with the same render mode - RenderModes - Only one type of render mode is supported per page for each control type. For example, all RadDock controls on the page must have the same value set to the RenderMode property. This includes instances from master pages, content pages and user controls.

    Regards,
    Peter Milchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. David
    David avatar
    2 posts
    Member since:
    Sep 2011

    Posted 20 Jul 2018 in reply to Peter Milchev Link to this post

    Hi Peter,

    Thanks for your response. 

    > Also, please check if using a newer version of the Telerik controls would resolve the problem

    I replaced the Telerik DLLs in the /Bin folder and that fixed the problem. I'm not sure if something had become corrupted or it was in fact an older version, but it is working now.

     

    Many thanks,

    David

Back to Top