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

Generated div for updated controls changes display

1 Answer 53 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Leslie Shkolnik
Top achievements
Rank 1
Leslie Shkolnik asked on 08 Oct 2008, 08:25 PM
I am migrating to RadControls for ASP.Net Ajax version 2008.2.826.20.

A div panel is generated around any control that is the target of an update.  Because the div is set with style="DISPLAY: block", it is causing the page to render incorrectly in many situations.  There is no class defined on the generated div.  Is there a way to control this behavior?

For example:

2 labels which should be showing up next to each other are on separate lines

 

<td>
<asp:Label CssClass="StandardText" ID="Label3" runat="server" Text="<%$Resources: SampleCount %>"></asp:Label>
<asp:Label CssClass="StandardText" ID="lblSampleCount" runat="server" Text="0"></asp:Label>
</td>

 

Rendered as:
<TD><SPAN class=StandardText id=ctl00_Content_Label3>Count:</SPAN>
<DIV id=ctl00_ctl00_Content_lblSampleCountPanel style="DISPLAY: block"><SPAN class=StandardText id=ctl00_Content_lblSampleCount>1</SPAN></DIV></TD></TR>

Also, I have a section of hidden variables, some of which are the target of an update.  All of the sudden after an ajax request, these hidden variables are taking up space on the screen.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Oct 2008, 02:56 PM
Hi Leslie,

You can set

UpdatePanelsRenderMode="Inline"

to RadAjaxManager to get around this problem.


Sincerely yours,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Leslie Shkolnik
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or