CheckBox display problem

5 posts, 0 answers
  1. Joe
    Joe avatar
    48 posts
    Member since:
    Dec 2007

    Posted 24 Mar 2008 Link to this post

    I have this list box that updates several check boxes (asp:CheckBox) whenever the user selects a new value in the list. I've noticed that the check boxes don't display correctly now that I've wired them up using a RadAjaxManagerProxy.

    The problem I am having is that the check boxes are each followed by an asp:Label which gets broken to a new line only when wired up using ajax manager. I want the check box and text to remain on the same line.

    I can see that the combo box is getting rendered with a surrounding div. I'm assuming the problem has something to do with the div since it's display mode is block? For some reason this gets rendered in the browser differently depending on whether or not ajax manager is involved.

    Thanks,
    Joe
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Mar 2008 Link to this post

    Hello Joe,

    You are correct in your observations that the updated control is surrounded by div - this is how the asp:UpdatePanels render by default (rendermode="block"). To change that you can hook up to the OnAjaxSettingCreating and change the RenderMode to Inline which would render the updatePanel as span element:

    e.UpdatePanel.RenderMode = UpdatePanelRenderMode.Inline;

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joe
    Joe avatar
    48 posts
    Member since:
    Dec 2007

    Posted 31 Mar 2008 Link to this post

    I didn't see the event in my RadAjaxManagerProxy. I had to expose the RadAjaxManager from my master page. That fixed my issue.

    Just curious why that isn't exposed from the proxy?

    By the way, you guys rock.

    Thanks,
    Joe
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 31 Mar 2008 Link to this post

    Hi Joe,

    The event is not exposed for the RadAjaxManagerProxy because it is only a container for ajax settings which are appended to those set for the RadAjaxManager residing in the master page.
    However, using the GetCurrent(Page) method gives you straight-forward means to get access to the ajax manager residing in the master page and thus you can invoke its ajaxRequest method and handler the AjaxRequest event:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Ajax/Examples/Manager/MasterPage/DefaultCS.aspx

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Joe
    Joe avatar
    48 posts
    Member since:
    Dec 2007

    Posted 31 Mar 2008 Link to this post

    That's useful to know. I've just changed my page to use GetCurrent.

    Thanks,
    Joe
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017