This is a migrated thread and some comments may be shown as answers.

Javascript error in ajaxupdatepanel when visible=false initially

3 Answers 33 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Adam Toth
Top achievements
Rank 1
Adam Toth asked on 20 Sep 2010, 11:20 PM
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?

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 22 Sep 2010, 09:31 AM
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
0
Dimo
Telerik team
answered on 22 Sep 2010, 09:40 AM
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
0
Adam Toth
Top achievements
Rank 1
answered on 23 Sep 2010, 06:13 PM
It turns out my asp:ScriptManager had EnablePartialRendering set to true. When I set this to false, the javascript errors went away.
Tags
ListView
Asked by
Adam Toth
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Dimo
Telerik team
Adam Toth
Top achievements
Rank 1
Share this question
or