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

Issue with RadAjaxManagerProxy, FormDecorator, asp:Button

1 Answer 63 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Yash
Top achievements
Rank 1
Yash asked on 22 Oct 2010, 07:43 PM
The issue looked very bizzarre to me.
- I am using a RadAjaxManagerProxy on my user control. (I do have a RadAjaxManager on my MasterPage)
- I am using a Form Decorator (on Masterpage) which decorates "All" elements it can.
I have 3 buttons in the user control, mark up related to them is,
<ASP:BUTTON id="btSmptApply" runat="server" Width="100px"  Text="Apply"
Enabled="False" onclick="btSmptApply_Click" ValidationGroup="mail"
meta:resourcekey="btSmptApplyResource1"></ASP:BUTTON> &nbsp;
<ASP:BUTTON id="btVerifySmtp" runat="server" Width="100px"  Text="Verify"
ENABLED="False" onclick="btVerifySmtp_Click"  ValidationGroup="mail"

 meta:resourcekey="btVerifySmtpResource1"></
ASP:BUTTON>&nbsp;
<
ASP:BUTTON id="btSMTPCancel" runat="server" Width="100px"  Text="Reset"
 CAUSESVALIDATION="False" onclick="btCancel_Click"
meta:resourcekey="btSMTPCancelResource1">
</
ASP:BUTTON>&nbsp;

The settings of these buttons in RadAjaxManagerProxy is,
<telerik:AjaxUpdatedControl ControlID="btSmptApply"></telerik:AjaxUpdatedControl>
<
telerik:AjaxUpdatedControl ControlID="btVerifySmtp"></telerik:AjaxUpdatedControl>
<
telerik:AjaxUpdatedControl ControlID="btSMTPCancel"></telerik:AjaxUpdatedControl>

When these lines are enabled, the buttons align Vertically automatically, the following html is inserted automatically for each button:
<div style="display: block;" id="ctl00_ctl00_ContentPlaceHolder1_ConfigureMailServer1_btVerifySmtpPanel">

When I comment out the above lines of RadAjaxManagerProxy, the buttons align horizontally(as I want them to be).
My Questions:
1. Why is this happening?
2. What does RadAjaxManager to do with Alignment?
3. I worked with conventional Ajax (xmlHttpRequest object) etc alot. What role does RadAjaxManager play? why is it needed in a webpage?

Please let me know as soon as possible. Thanks in advance.



1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel
Telerik team
answered on 26 Oct 2010, 02:04 PM
Hi Yash,

You can set the UpdatePanelsRenderMode property of RadAjaxManager to "Inline" to make it render the update panels that way. You can also check the following article about this control:
http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html


Best wishes,
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
Tags
Ajax
Asked by
Yash
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Share this question
or