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

using UpdatePanelRenderMode.Inline still renders as block

1 Answer 66 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
JP
Top achievements
Rank 1
JP asked on 04 Feb 2013, 03:08 PM
Hi,

I ajaxified a combobox which works fine, but I want it to be rendered inline:

ajaxManager.AjaxSettings.AddAjaxSetting(cb1, cb2, null, UpdatePanelRenderMode.Inline);

The control will be updated, but the generated panel won't be rendered as inline-block.
Using

AjaxSetting setting = new AjaxSetting(cb1.ID);
         setting.UpdatedControls.Add(new AjaxUpdatedControl(cb2.ID, null)
            {
               UpdatePanelRenderMode = UpdatePanelRenderMode.Inline
            });
         ajaxManager.AjaxSettings.Add(setting);
won't generate a panel at all and will throw an exception on postback because of the missing panel.

What else is necessary that the panel gets rendered as inline-block?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Feb 2013, 11:20 AM
Hi Jan-Patrick,

Try to set the required property to the whole RadAjaxManager like this:
protected void Page_Load(object sender, EventArgs e)
    {
        RadAjaxManager1.UpdatePanelsRenderMode = UpdatePanelRenderMode.Inline;
    }

and verify if this works.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
JP
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or