Javascript error in ajaxupdatepanel when visible=false initially

4 posts, 0 answers
  1. Adam Toth
    Adam Toth avatar
    41 posts
    Member since:
    Oct 2005

    Posted 20 Sep 2010 Link to this post

    I have a page with a RadAjaxUpdatePanel that may or may not show a RadListView control depending on what the user selects. The radlistview is on the page, but initially is Visible=false.

    This scenario will result in a javascript error Sys.ArgumentUndefinedException in the asp.net ajax framework.

    Do you know of a workaround for this control?
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 22 Sep 2010 Link to this post

    Hello Adam,

    I have prepared a simple test page which illustrates a scenario similar to yours and works as expected on my end. Please try it out and let me know how to alter it in order to replicate the problem you are experiencing.

    Kind regards,
    Pavel
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 22 Sep 2010 Link to this post

    Adam,

    If the problem is exhibited in SharePoint 2010 and you are displaying the RadListView as a result of an AJAX request, you should know that this is an unsupported scenario due to a SharePoint limitation, which prevents the Javascript files of script controls to be registered on the page after AJAX requests. If this is the case, then keep all script controls visible on the page, or show them via regular postbacks.

    All the best,
    Dimo
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Adam Toth
    Adam Toth avatar
    41 posts
    Member since:
    Oct 2005

    Posted 23 Sep 2010 Link to this post

    It turns out my asp:ScriptManager had EnablePartialRendering set to true. When I set this to false, the javascript errors went away.
Back to Top