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

[Solved] RadAjaxManager and Panel

3 Answers 282 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Miha Markic
Top achievements
Rank 1
Miha Markic asked on 20 Nov 2007, 10:40 PM
I have started using RadAjaxManager prometheous on my project and I immediately stepped over an odd problem (I can't recreate in a sample).
I have a webpage based on master page. ScriptManager and RadAjaxManager are both on this page. After postbacks I get this exception:
---------------------------
Windows Internet Explorer
---------------------------
Object reference not set to an instance of an object.
---------------------------
OK  
---------------------------

I nailed it down to the RadAjaxManager setting when (at design time) it uses a certain Panel for both source and destination. As I said I cannot reproduce on simple sample, but when I comment this setting everything works fine.
Any idea on how to tackle it?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Nov 2007, 09:14 AM
Hi Miha,

This is a known limitation of the MS AJAX framework - you cannot ajaxify container controls. Controls applicable for ajaxification must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler. More info is available in our Prometheus help in the "Current Limitations" article.

Greetings,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Miha Markic
Top achievements
Rank 1
answered on 21 Nov 2007, 09:22 AM
Aha, OK. By Ajaxification you are referring to "source", right. So the solution would be to ajaxify each control idividually, correct?
Note: Can you raise an exception at design time or runtime that "this kind of control can't be ajaxified"?
0
Steve
Telerik team
answered on 21 Nov 2007, 09:47 AM
Hi Miha,

We already have this suggestion logged for implementation. Actually MS AJAX does throw the error, it is our AjaxManager that suppresses it. MS UpdatePanel already throws the following: 

Additional information: Control with ID 'Panel1' being registered through RegisterAsyncPostBackControl or RegisterPostBackControl must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler.


All the best,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Miha Markic
Top achievements
Rank 1
Answers by
Steve
Telerik team
Miha Markic
Top achievements
Rank 1
Share this question
or