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

Empty DIVs with RadAjax

2 Answers 75 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Justin Kiner
Top achievements
Rank 1
Justin Kiner asked on 18 Sep 2008, 05:20 PM
We have a number of pages that use a RadAjaxManagerProxy (wired to a Manager on a master page) to turn on and off various asp:panels based on certain conditions. However, I've noticed that when the page re-renders, those panels that were explicitly set to be hidden show up as as a block-layout div, taking up vertical room on the page or control. When the controls are un-ajaxified and the page posts back, these hidden panels do not render as these "empty div" tags. Any suggestions on getting around this?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Sep 2008, 02:43 PM
Hi Justin,

In order to avoid the unwanted effect, merely set the UpdatePanelsRenderMode property of your RadAjaxManager to Inline (the default value is Block). Thus the hidden ajaxified panels should be rendered as inline instead of block elements.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Justin Kiner
Top achievements
Rank 1
answered on 22 Sep 2008, 05:43 PM
Thanks, that works great!
Tags
Ajax
Asked by
Justin Kiner
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Justin Kiner
Top achievements
Rank 1
Share this question
or