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

AJAX problems

2 Answers 101 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Zvonimir Mavretić
Top achievements
Rank 2
Zvonimir Mavretić asked on 13 Jul 2009, 03:05 PM
Hy! I'm experiencing some problems using AJAX RadPanel and AJAX RadManager.

When I open my aspx page and click on a item inside RadListBox (tried using AJAX RadPanel and AJAX RadManager, same behaviour), it executes and after that none of the events work (button click, radlistbox selected index changed, ...) like the whole page is just blocked and it doesn't respond anymore. ASPX page is inside SharePoint context.

When I remove AJAX RadPanel (or AJAX RadManager) everything works smoothly using postbacks.

But the real problem is that it works in testing environment and it doesn't work on production (works without AJAX, doesn't work with AJAX).

Did you experience these problems somewhere and can you tell some of the possible things that could cause these problems?
Tried using IE 7, IE 8, Firefox 3.5 (same behaviour, works in testing environment, doesn't work on production).

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 13 Jul 2009, 03:41 PM
Hello Zvonimir,

This is indeed a strange issue and unfortunately from the information provided so far I am not able to determine the exact reason for the abnormality.

Can you perform a couple of quick tests and share the results with us to investigate the matter further:

  • Replace temporary the RadAjaxPanel with MS UpdatePanel to see whether the behavior changes
  • Move your test page with RadAjaxPanel or RadAjaxManager outside of the Sharepoint context to see whether the issue remains

You may also utilize the troubleshooting tips under the corresponding chapter from the RadControls online documentation to perform some debugging on your production server.

Please notify us about your findings in order to proceed with our research and advice you how to fix the issue.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Zvonimir Mavretić
Top achievements
Rank 2
answered on 15 Jul 2009, 11:15 AM
HY!

I solved the problem.

Tried it outside the SharePoint context and It worked, so the problem was in SharePoint.
Surfed the net and found an answer on this page:

http://oricode.wordpress.com/2008/02/20/ajax-enabled-webpart-not-working-on-second-postback/

Only difference is that I'm using AJAX in custom aspx page, so I just added those 2 javascript lines inside my aspx page:

<script type="text/javascript">
    _spOriginalFormAction = document.forms[0].action;
    _spSuppressFormOnSubmitWrapper=true;
</script>

Hope this helps someone else.
Tags
Ajax
Asked by
Zvonimir Mavretić
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Zvonimir Mavretić
Top achievements
Rank 2
Share this question
or