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

Incompatibality with microsofts ajaxToolkit ModalPopupExtender

2 Answers 73 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Peter Sitero
Top achievements
Rank 1
Peter Sitero asked on 08 Jan 2010, 06:35 PM
Looks like the form decorator has compatibiliy issues with microsoft's ajaxToolkit ConfirmButtonExtender and ModalPopupextender.  For every instance of the extender a bracket "]" appears. If I select "buttons" for ControlsToSkip the issue goes away but now my buttons don't match the rest of my site.  This is probably because the popup extender has buttons embedded in it.  I see Zone as a ControlsToSkip option.  What is a Zone and can I enclose the extender in such a Zone?

 

2 Answers, 1 is accepted

Sort by
0
Peter Sitero
Top achievements
Rank 1
answered on 08 Jan 2010, 08:02 PM
I fixed it by wrapping it in an RadXmlHttpPanel and set the height to 0. Kinda wacky but it works.
0
Lini
Telerik team
answered on 11 Jan 2010, 11:17 AM
Hello,

An easier workaround would be simply to wrap the ConfirmButtonExtender in a <div style="display:none">. For example:

<div style="display:none">
  <ajaxToolkit:ConfirmButtonExtender ID="ConfirmButtonExtender2" runat="server" TargetControlID="Button" DisplayModalPopupID="ModalPopupExtender1" />
</div>

The problem in the first place is that the confirm button extender renders a new hidden button on the page (<input>) and the form decorator tries to decorate it. Since the new button is hidden, the style is not applied properly and the browser still renders a part of it (the ]). The workaround in this case is to wrap the button with a hidden div.

All the best,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
FormDecorator
Asked by
Peter Sitero
Top achievements
Rank 1
Answers by
Peter Sitero
Top achievements
Rank 1
Lini
Telerik team
Share this question
or