using UpdatePanelRenderMode.Inline still renders as block

2 posts, 0 answers
  1. JP
    JP avatar
    122 posts
    Member since:
    Aug 2011

    Posted 04 Feb 2013 Link to this post

    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?
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Feb 2013 Link to this post

    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.
Back to Top