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

[Solved] RadajaxmanagerProxy cause wrapping in my cells ??

1 Answer 122 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Tgaud
Top achievements
Rank 1
Tgaud asked on 10 Jul 2009, 07:43 AM
Hi, i have a strange behaviors here :

When i put an ajax manager proxy in my content page,
my Asp:Table, lower on the page, have all his <asp:TableCell> content wrapped.

For example  without radajaxmanager proxy  i have my cell

---------------------------------------------------------------------------
|   Name : Franck                Email : Toto@titi.com                |
---------------------------------------------------------------------------


And when i add the radajaxmanagerproxy

---------------------------------------------------------------------------
| Name :                                                                                 |
| Franck                                                                                 |
| Email :                                                                                 |
| Toto@titi.com                                                                      |
---------------------------------------------------------------------------

And this with all my cells.
Except this problem, the radmanagerproxy is working fine.

Here the code :
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ListesBR">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListesBR" />
                    <telerik:AjaxUpdatedControl ControlID="ListesBU" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadListUsers">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadListUsers" />
                    <telerik:AjaxUpdatedControl ControlID="SupprimerUser_Btn" />
                    <telerik:AjaxUpdatedControl ControlID="Blocked_CB" />
                    <telerik:AjaxUpdatedControl ControlID="Password_Input" />
                    <telerik:AjaxUpdatedControl ControlID="ConfirmPassword_Input" />
                    <telerik:AjaxUpdatedControl ControlID="ListesBR" />
                    <telerik:AjaxUpdatedControl ControlID="ListesBU" />
                    <telerik:AjaxUpdatedControl ControlID="Nom_Input" />
                    <telerik:AjaxUpdatedControl ControlID="Prenom_Input" />
                    <telerik:AjaxUpdatedControl ControlID="NouvelUser_Lbl" />
                    <telerik:AjaxUpdatedControl ControlID="InfoTable" />
                </UpdatedControls>
            </telerik:AjaxSetting>



And my Table :

             <asp:Table GridLines="None" ID="InfoTable" runat="server" Width="450px">
                    <asp:TableRow>
                        <asp:TableCell HorizontalAlign="Center" Visible="true">
                            <asp:Label ID="NouvelUser_Lbl" ForeColor="Red" runat="server">NOUVEL UTILISATEUR</asp:Label>&nbsp;
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell HorizontalAlign="Left">
                            <asp:Label ID="Nom_Lbl" runat="server">Nom :</asp:Label>
                            <telerik:RadTextBox runat="server" ID="Nom_Input" Text="" Skin="Black">
                            </telerik:RadTextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Label ID="Prenom_Lbl" runat="server">Prénom :</asp:Label>
                            <telerik:RadTextBox ID="Prenom_Input" runat="server" Width="125px" Skin="Black">
                            </telerik:RadTextBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="Label2" runat="server">Branche :</asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="ListesBR" runat="server" AllowCustomText="False" OnSelectedIndexChanged="ListesBR_SelectedIndexChanged"
                                AutoPostBack="true" Width="280px" NoWrap="true" Skin="Black">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="EntiteBU_Lbl" runat="server">Sous Branche :</asp:Label>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="ListesBU" runat="server" AllowCustomText="False" Skin="Black"
                                Width="280px" NoWrap="true">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="Pass_Lbl" runat="server">Nouveau mot de passe (optionnel) :</asp:Label>
                            <telerik:RadTextBox ID="Password_Input" runat="server" Width="280px" NoWrap="true"
                                Skin="Black">
                            </telerik:RadTextBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="ConfirmPass_Lbl" runat="server">Confirmer nouveau mot de passe (optionnel) :</asp:Label>
                            <telerik:RadTextBox ID="ConfirmPassword_Input" runat="server" Width="280px" NoWrap="true"
                                Skin="Black">
                            </telerik:RadTextBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Label ID="Bloquer_Lbl" runat="server">Utilisateur bloqué</asp:Label>
                            <asp:CheckBox runat="server" ID="Blocked_CB" />
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>&nbsp;</asp:TableCell></asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Button ID="SupprimerUser_Btn" runat="server" OnClientClick="return blockConfirm('Êtes vous sur de vouloir supprimer cet utilisateur ?', event, 330, 100,'','Demande de confirmation');"
                                Text="Supprimer" />
                            &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Enregistrer_Btn" runat="server" OnClick="Enregistrer_Btn_Click"
                                Text="Enregistrer" />
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 13 Jul 2009, 10:51 AM
Hello Tgaud,

The update panels, which are generated by RadAjaxManager are <div> elements, which normally fall to a new line. In order to keep them on the same line, please set UpdatePanelsRenderMode="Inline" to the RadAjaxManager. If you want only some of the update panels to act as inline elements, then it is recommended to set the RenderMode property of each update panel at runtime. You have to subscribe to the AjaxSettingCreated event of the RadAjaxManager, check the ID of the updated control (e.Updated.ID) and set

// C#
e.UpdatePanel.RenderMode = UpdatePanelRenderMode.Inline

Alternatively, here is another approach:

http://www.telerik.com/community/forums/aspnet-ajax/ajax/radajax-and-updatepanelsrendermode-inline.aspx

All the best,
Dimo
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.
Tags
Ajax
Asked by
Tgaud
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or