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

[Solved] Line breaks after controls

2 Answers 293 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Skypy
Top achievements
Rank 1
Skypy asked on 02 Apr 2008, 09:54 AM
Hello,

When I use RadAjaxManager it breaks my page.
My controls are on the same line (to be embedded in a HTML Table later) but after RadAjaxManager'ed them, there is a line break on the screen after each control because there is a div created for each control by the Manager.

<div style="width: 100%">
    <asp:Label ID="Label27" runat="server" Text="Label"></asp:Label>
    <telerik:RadComboBox ID="RadComboBox1" runat="server">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="Aucun" />
        </Items>
        <CollapseAnimation Duration="200" Type="OutQuint" />
    </telerik:RadComboBox>
    &nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" Text="Button" />&nbsp;<asp:Button ID="Button3"
        runat="server" Text="Button" /></div>

In browser :
...
    <div id="ctl00_ContentPlaceHolder1_MajHoraires1_ctl00_ContentPlaceHolder1_MajHoraires1_Button2Panel">
    <input type="submit" name="ctl00$ContentPlaceHolder1$MajHoraires1$Button2" value="Button" id="ctl00_ContentPlaceHolder1_MajHoraires1_Button2" />
</div>&nbsp;<div id="ctl00_ContentPlaceHolder1_MajHoraires1_ctl00_ContentPlaceHolder1_MajHoraires1_Button3Panel">
    <input type="submit" name="ctl00$ContentPlaceHolder1$MajHoraires1$Button3" value="Button" id="ctl00_ContentPlaceHolder1_MajHoraires1_Button3" />
</div>
...


How can I bypass this problem ?

Thanks

2 Answers, 1 is accepted

Sort by
0
Skypy
Top achievements
Rank 1
answered on 02 Apr 2008, 12:49 PM
Well I found :

For first rendering (before ajax) I added to aspx :
<style type="text/css">
div {
    display: inline;
}
</style>

And I set : UpdatePanelsRenderMode="Inline" to RadAjaxManager
So my page is nice from the beginning to the end.
0
Michael Bartlett
Top achievements
Rank 1
answered on 12 Jun 2008, 08:46 PM
Skype - This worked great.  I didn't see the inline property on the ajaxmanager and by only using that it fixed the problem.  Thanks for posting a solution                . 
Tags
Ajax
Asked by
Skypy
Top achievements
Rank 1
Answers by
Skypy
Top achievements
Rank 1
Michael Bartlett
Top achievements
Rank 1
Share this question
or