ASPxGridView and AJAX Extensions ToolBox are not compatible

Source: Internet
Author: User
Tags call back

Http://www.devexpress.com/Support/Center/p/Q91789.aspx

 

Created by Herbert Illedits at 2007/12/11 14:44:46
Attachment: WebApplication1.zip (211136 bytes)

When I create a page using the 'callbackpanel 'controll and into the CallbackPanel the ms ajax Toolkit CollapsiblePanel Extender, I get the following error on Callback.

Extender control 'collapsiblepanelextender1 'is not a registered extender control. Extender controls must be registered using RegisterExtenderControl () before calling RegisterScriptDescriptors (). Parametername: extenderControl

Can you help me what's wrong?

Reviewed by DevExpress Team at 2007/12/12 8:49:53

Processed (Answered) by DevExpress Team at 2007/12/12 10:36:00

Hi Herbert,

The problem appears because the extender control shocould register its scripts within the Prerender event. when you call the specified mcallback method, the Callback event is generated, but the PreRender event is not generated in this case (this is one of the difference between a post back and call back ). so, the problem appears.

Thanks,
Plato

Reactivated by Herbert Illedits at 2007/12/12 14:04:43

Hi Plato,

Thank you for your answer, but I don't know what I have to do, to fix this problem. Have you some example for me how to handle this problem?

Thanks,
Herbert

Processed (Answered) by DevExpress Team at 2007/12/12 21:46:45

Hi Herbert,

To find a solution for your task, we first need to know what you are trying to achieve. Please detail that, and we will try to help you.

Thanks,
Plato

Reactivated by Herbert Illedits at 2007/12/13 7:57:52

Hallo Plato,

I want to create a UserControl who has Ds the ms ajax Toolkit CollapsiblePanel Extender, this works fine if I do not use it in a CallbackPanel. but at the time I use it into the CallbackPanel I get the error descriped above.

Herbert

Updated by DevExpress Team at 2007/12/17 22:51:49

Hi Herbert,

We are working on this question and will post a solution here once we find it. Please bear with us.

Thanks,
Plato

Processed (Answered) by DevExpress Team at 2007/12/28 14:56:51

Hi Herbert,

First, I apologize for the delay in responding. It took us some time to examine this problem.

However, as we found, extenders are incompatible with controls that update their content using the callback technology. as we stated previusly, due to the extenders 'specificity, they shoshould be registered when both OnPreRender and OnRender events are processed. but, the OnPrerender isn't triggered when a control is updated via a callback. that's why the problem occurs.

A possible solution is to move the extender outside the CallbackPanel, so that it isn' t updated when processing a callback. but, the extender will not be able to find its target control by the TargetControlID, because in this situation, they will be placed on different hierarchy levels. you'll have to write a custom ControlID resolver to process this situation (handle its ResolveControlID event ). another problem with this solution is that all custom client properties assigned to the control by the extender will be lost once the control is updated via a callback. it looks as if the only way to overcome this is to manually save/restore the required settings.

So, it appears that there is no easy way to resolve this incompatibility problem. We apologize for any inconvenience.

Thanks,
Vito

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.